Skip to content

Commit

Permalink
rename ns to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverMKing committed Feb 1, 2023
1 parent 3290658 commit 223b27b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/strategyHelpers/canary/canaryHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ async function cleanUpCanary(
for (const inputObject of parsedYaml) {
const name = inputObject.metadata.name
const kind = inputObject.kind
const ns = inputObject?.metadata?.namespace
const namespace = inputObject?.metadata?.namespace

if (
isDeploymentEntity(kind) ||
Expand All @@ -227,8 +227,8 @@ async function cleanUpCanary(
const canaryObjectName = getCanaryResourceName(name)
const baselineObjectName = getBaselineResourceName(name)

await deleteObject(kind, canaryObjectName, ns)
await deleteObject(kind, baselineObjectName, ns)
await deleteObject(kind, canaryObjectName, namespace)
await deleteObject(kind, baselineObjectName, namespace)
}
}
}
Expand Down

0 comments on commit 223b27b

Please sign in to comment.