Skip to content

Commit

Permalink
fix(k8s): delete env command would recreate namespace after delete
Browse files Browse the repository at this point in the history
We were calling the environment status handler unnecessarily, which
might implicitly create a k8s namespace during execution.
  • Loading branch information
edvald authored and thsig committed Nov 17, 2021
1 parent e6a2152 commit b705c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ export class ActionRouter implements TypeGuard {
const providers = await this.garden.resolveProviders(log)
await Bluebird.each(Object.values(providers), async (provider) => {
await this.cleanupEnvironment({ pluginName: provider.name, log: envLog })
environmentStatuses[provider.name] = await this.getEnvironmentStatus({ pluginName: provider.name, log: envLog })
environmentStatuses[provider.name] = { ready: false, outputs: {} }
})

envLog.setSuccess()
Expand Down

0 comments on commit b705c6f

Please sign in to comment.