mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-27 15:19:27 +08:00
omit namespace arg for default namespace (#195)
This commit is contained in:
@@ -147,8 +147,9 @@ export class Kubectl {
|
||||
if (this.ignoreSSLErrors) {
|
||||
args.push("--insecure-skip-tls-verify");
|
||||
}
|
||||
args = args.concat(["--namespace", this.namespace]);
|
||||
|
||||
if (this.namespace && this.namespace != "default") {
|
||||
args = args.concat(["--namespace", this.namespace]);
|
||||
}
|
||||
core.debug(`Kubectl run with command: ${this.kubectlPath} ${args}`);
|
||||
return await getExecOutput(this.kubectlPath, args, { silent });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user