Fixing K8s PVC mounting

pull/289/head
mdugdale 2021-08-21 20:17:15 +01:00
parent a2067c33ed
commit e00075a7b1
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -1937,6 +1937,7 @@ class KubernetesStorage {
const name = (_a = result.body.metadata) === null || _a === void 0 ? void 0 : _a.name;
if (!name)
throw new Error('failed to create PVC');
core.info(JSON.stringify(yield kubeClient.readNamespacedPersistentVolumeClaim(name, namespace), undefined, 4));
core.info(`PVC ${name} created`);
yield this.watchUntilPVCNotPending(kubeClient, name, namespace);
core.info(`PVC ${name} is ready and not pending`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -56,6 +56,7 @@ class KubernetesStorage {
const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
const name = result.body.metadata?.name;
if (!name) throw new Error('failed to create PVC');
core.info(JSON.stringify(await kubeClient.readNamespacedPersistentVolumeClaim(name, namespace), undefined, 4));
core.info(`PVC ${name} created`);
await this.watchUntilPVCNotPending(kubeClient, name, namespace);
core.info(`PVC ${name} is ready and not pending`);