Skip to content

Commit

Permalink
Remove unused wipe-devstaging job
Browse files Browse the repository at this point in the history
  • Loading branch information
mads-hartmann authored and roboquat committed Aug 31, 2022
1 parent f019941 commit 65e872b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 110 deletions.
9 changes: 1 addition & 8 deletions .werft/util/kubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ async function wipePreviewEnvironmentInstaller(namespace: string, kubeconfig: st
}).code === 0;
if (hasGitpodConfigmap) {
werft.log(slice, `${namespace} has Gitpod configmap, proceeding with removal`);
const inWerftFolder = exec(`pwd`, { slice, dontCheckRc: true }).stdout.trim().endsWith(".werft");
if (inWerftFolder) {
// used in .werft/wipe-devstaging.yaml on preview environment clean-up
exec(`./util/uninstall-gitpod.sh ${namespace} ${kubeconfig}`, { slice });
} else {
// used in .werft/build.yaml on 'with-clean-slate-deployment=true'
exec(`./.werft/util/uninstall-gitpod.sh ${namespace} ${kubeconfig}`, { slice });
}
exec(`./util/uninstall-gitpod.sh ${namespace} ${kubeconfig}`, { slice });
} else {
werft.log(slice, `There is no Gitpod configmap, moving on`);
}
Expand Down
53 changes: 0 additions & 53 deletions .werft/wipe-devstaging.ts

This file was deleted.

49 changes: 0 additions & 49 deletions .werft/wipe-devstaging.yaml

This file was deleted.

0 comments on commit 65e872b

Please sign in to comment.