fixed function name

This commit is contained in:
Mohamad Tahir 2021-10-11 13:55:59 +00:00
parent f518583554
commit c3178ae9f2
No known key found for this signature in database
GPG Key ID: F5A1E5A559ED9CA8

View File

@ -102,7 +102,7 @@ export async function setContext(kubeconfigPath: string) {
} }
} }
export async function setContext(kubeconfigPath: string) { export async function setNamespace(kubeconfigPath: string) {
let namespace = core.getInput('namespace'); let namespace = core.getInput('namespace');
if (namespace) { if (namespace) {
//To use kubectl commands, the environment variable KUBECONFIG needs to be set for this step //To use kubectl commands, the environment variable KUBECONFIG needs to be set for this step
@ -135,7 +135,7 @@ export async function run() {
core.exportVariable('KUBECONFIG', kubeconfigPath); core.exportVariable('KUBECONFIG', kubeconfigPath);
console.log('KUBECONFIG environment variable is set'); console.log('KUBECONFIG environment variable is set');
await setContext(kubeconfigPath); await setContext(kubeconfigPath);
await setContext(kubeconfigPath); await setNamespace(kubeconfigPath);
} }
} catch (ex) { } catch (ex) {
return Promise.reject(ex); return Promise.reject(ex);