Fix: changing wait order creating k8s resources

pull/273/head
Frostebite 2021-06-18 21:03:11 +01:00
parent 30820561e7
commit 02e6ffc6da
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1702,7 +1702,7 @@ class KubernetesStorage {
};
yield kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume created, ${yield KubernetesStorage.getPVCPhase(kubeClient, pvcName, namespace)}`);
yield this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
// await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
core.info(JSON.stringify((yield kubeClient.readNamespacedPersistentVolumeClaimStatus(pvcName, namespace)).body, undefined, 4));
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@ class KubernetesStorage {
};
await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume created, ${await KubernetesStorage.getPVCPhase(kubeClient, pvcName, namespace)}`);
await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
// await this.watchPersistentVolumeClaimUntilBoundToContainer(kubeClient, pvcName, namespace);
core.info(
JSON.stringify(
(await kubeClient.readNamespacedPersistentVolumeClaimStatus(pvcName, namespace)).body,