retained workspace for k8s

pull/437/head
Frostebite 2022-10-18 16:48:35 +01:00
parent a63b155b63
commit 1de2bd651b
4 changed files with 2 additions and 4 deletions

1
dist/index.js vendored
View File

@ -3350,7 +3350,6 @@ class KubernetesStorage {
const allPvc = (yield kubeClient.listNamespacedPersistentVolumeClaim(namespace)).body.items;
const pvcList = allPvc.map((x) => { var _a; return (_a = x.metadata) === null || _a === void 0 ? void 0 : _a.name; });
cloud_runner_logger_1.default.log(`Current PVCs in namespace ${namespace}`);
cloud_runner_logger_1.default.log(JSON.stringify(allPvc, undefined, 4));
cloud_runner_logger_1.default.log(JSON.stringify(pvcList, undefined, 4));
if (pvcList.includes(pvcName)) {
cloud_runner_logger_1.default.log(`pvc ${pvcName} already exists`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -22,7 +22,6 @@ class KubernetesStorage {
const allPvc = (await kubeClient.listNamespacedPersistentVolumeClaim(namespace)).body.items;
const pvcList = allPvc.map((x) => x.metadata?.name);
CloudRunnerLogger.log(`Current PVCs in namespace ${namespace}`);
CloudRunnerLogger.log(JSON.stringify(allPvc, undefined, 4));
CloudRunnerLogger.log(JSON.stringify(pvcList, undefined, 4));
if (pvcList.includes(pvcName)) {
CloudRunnerLogger.log(`pvc ${pvcName} already exists`);

View File

@ -75,7 +75,7 @@ describe('Cloud Runner Sync Environments', () => {
.replace(/\s+/g, '')
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
for (const element of combined) {
CloudRunnerLogger.log(`checking input/build param ${element.name} ${element.value}`);
// CloudRunnerLogger.log(`checking input/build param ${element.name} ${element.value}`);
expect(newLinePurgedFile).toContain(`${element.name}`);
CloudRunnerLogger.log(`Contains ${element.name}`);
const fullNameEqualValue = `${element.name}=${element.value}`;