Fixing K8s PVC mounting
parent
a2067c33ed
commit
e00075a7b1
|
|
@ -1937,6 +1937,7 @@ class KubernetesStorage {
|
||||||
const name = (_a = result.body.metadata) === null || _a === void 0 ? void 0 : _a.name;
|
const name = (_a = result.body.metadata) === null || _a === void 0 ? void 0 : _a.name;
|
||||||
if (!name)
|
if (!name)
|
||||||
throw new Error('failed to create PVC');
|
throw new Error('failed to create PVC');
|
||||||
|
core.info(JSON.stringify(yield kubeClient.readNamespacedPersistentVolumeClaim(name, namespace), undefined, 4));
|
||||||
core.info(`PVC ${name} created`);
|
core.info(`PVC ${name} created`);
|
||||||
yield this.watchUntilPVCNotPending(kubeClient, name, namespace);
|
yield this.watchUntilPVCNotPending(kubeClient, name, namespace);
|
||||||
core.info(`PVC ${name} is ready and not pending`);
|
core.info(`PVC ${name} is ready and not pending`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -56,6 +56,7 @@ class KubernetesStorage {
|
||||||
const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
|
const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
|
||||||
const name = result.body.metadata?.name;
|
const name = result.body.metadata?.name;
|
||||||
if (!name) throw new Error('failed to create PVC');
|
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`);
|
core.info(`PVC ${name} created`);
|
||||||
await this.watchUntilPVCNotPending(kubeClient, name, namespace);
|
await this.watchUntilPVCNotPending(kubeClient, name, namespace);
|
||||||
core.info(`PVC ${name} is ready and not pending`);
|
core.info(`PVC ${name} is ready and not pending`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue