Add skip tls flag (#260)

This commit is contained in:
Oliver King
2022-11-23 12:59:45 -05:00
committed by GitHub
parent c875a14bde
commit 47445fb82f
6 changed files with 42 additions and 11 deletions
+3 -2
View File
@@ -35,16 +35,17 @@ export async function run() {
core.getInput('private-cluster').toLowerCase() === 'true'
const resourceGroup = core.getInput('resource-group') || ''
const resourceName = core.getInput('name') || ''
const skipTlsVerify = core.getBooleanInput('skip-tls-verify')
const kubectl = isPrivateCluster
? new PrivateKubectl(
kubectlPath,
namespace,
true,
skipTlsVerify,
resourceGroup,
resourceName
)
: new Kubectl(kubectlPath, namespace, true)
: new Kubectl(kubectlPath, namespace, skipTlsVerify)
// run action
switch (action) {