new commit with all changes (#258)

This commit is contained in:
Jaiveer Katariya
2022-11-21 10:30:35 -05:00
committed by GitHub
parent e9693a7cdd
commit 58ba3f0665
8 changed files with 165 additions and 36 deletions
+7 -2
View File
@@ -102,13 +102,18 @@ export class Kubectl {
files: string | string[],
annotation: string
): Promise<ExecOutput> {
const filesToAnnotate = createInlineArray(files)
core.debug(`annotating ${filesToAnnotate} with annotation ${annotation}`)
const args = [
'annotate',
'-f',
createInlineArray(files),
filesToAnnotate,
annotation,
'--overwrite'
]
core.debug(
`sending args from annotate to execute: ${JSON.stringify(args)}`
)
return await this.execute(args)
}
@@ -169,7 +174,7 @@ export class Kubectl {
if (this.ignoreSSLErrors) {
args.push('--insecure-skip-tls-verify')
}
if (this.namespace && this.namespace != 'default') {
if (this.namespace) {
args = args.concat(['--namespace', this.namespace])
}
core.debug(`Kubectl run with command: ${this.kubectlPath} ${args}`)