Log PVC state

pull/273/head
Frostebite 2021-06-18 23:42:03 +01:00
parent d01688d55f
commit dcb6b5241c
4 changed files with 5 additions and 1 deletions

2
dist/index.js vendored
View File

@ -1375,6 +1375,7 @@ class Kubernetes {
yield this.cleanup();
}
catch (error) {
core.error(error);
core.error(JSON.stringify(error.response, undefined, 4));
throw error;
}
@ -1758,6 +1759,7 @@ class KubernetesStorage {
};
yield kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume Claim created`);
core.info(`PVC state: ${yield this.getPVCPhase(kubeClient, pvcName, namespace)}`);
});
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -157,6 +157,7 @@ class Kubernetes implements RemoteBuilderProviderInterface {
await this.cleanup();
} catch (error) {
core.error(error);
core.error(JSON.stringify(error.response, undefined, 4));
throw error;
}

View File

@ -46,6 +46,7 @@ class KubernetesStorage {
};
await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume Claim created`);
core.info(`PVC state: ${await this.getPVCPhase(kubeClient, pvcName, namespace)}`);
}
}