Skip to content

Commit 687463d

Browse files
author
Prince Rachit Sinha
committed
Remove for loop
1 parent 467a61e commit 687463d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.werft/build.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,10 @@ export async function deployToDev(deploymentConfig: DeploymentConfig, workspaceF
298298
try {
299299
if (deploymentConfig.cleanSlateDeployment) {
300300
// re-create namespace
301-
for (let pathToKubeConfig of [""]) {
302-
await cleanStateEnv(pathToKubeConfig);
303-
}
301+
await cleanStateEnv("");
304302

305303
} else {
306-
for (let pathToKubeConfig of [""]) {
307-
createNamespace(pathToKubeConfig, namespace, { slice: 'prep' });
308-
}
304+
createNamespace("", namespace, { slice: 'prep' });
309305
}
310306
// check how this affects further steps
311307
setKubectlContextNamespace(namespace, { slice: 'prep' });
@@ -398,7 +394,7 @@ export async function deployToDev(deploymentConfig: DeploymentConfig, workspaceF
398394
}
399395

400396
function installGitpodOnK3sWsCluster(commonFlags: string, pathToKubeConfig: string) {
401-
if(!k3sWsCluster){
397+
if (!k3sWsCluster) {
402398
return
403399
}
404400
let flags = commonFlags

0 commit comments

Comments
 (0)