We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f33bd commit eb32cccCopy full SHA for eb32ccc
src/core/lease/lease_manager.ts
@@ -57,8 +57,13 @@ export class LeaseManager {
57
}
58
59
private async currentNamespace (): Promise<string> {
60
- const namespace = this.configManager.getFlag<string>(flags.namespace)
61
- if (!namespace) return null
+ const deploymentNamespace = this.configManager.getFlag<string>(flags.namespace)
+ const clusterSetupNamespace = this.configManager.getFlag<string>(flags.clusterSetupNamespace)
62
+
63
+ if (!deploymentNamespace && !clusterSetupNamespace) {
64
+ return null
65
+ }
66
+ const namespace = deploymentNamespace ? deploymentNamespace : clusterSetupNamespace
67
68
if (!await this.k8.hasNamespace(namespace)) {
69
await this.k8.createNamespace(namespace)
0 commit comments