Skip to content

Commit

Permalink
chore: print namespace in the log message
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jul 10, 2024
1 parent 03cb311 commit 5abf975
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/plugins/kubernetes/commands/cleanup-garden-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ export const cleanupUtilDeployment: PluginCommand = {
const k8sCtx = ctx as KubernetesPluginContext
const provider = k8sCtx.provider

log.info({ msg: styles.highlight(`\nRemoving ${utilDeploymentName} deployment`) })

const namespace = provider.outputs["app-namespace"]
const targetKinds = ["Service", "Deployment"]
log.info({ msg: styles.highlight(`\nRemoving ${utilDeploymentName} deployment from namespace ${namespace}`) })

const targetKinds = ["Service", "Deployment"]
const resources: KubernetesResource[] = targetKinds.map((kind) => {
return { apiVersion: "v1", kind, metadata: { name: utilDeploymentName } }
})
Expand Down

0 comments on commit 5abf975

Please sign in to comment.