From ec4658ba67b6dfb51cf120b0daee7daf649435fc Mon Sep 17 00:00:00 2001 From: Atharva Mulmuley Date: Thu, 3 Jun 2021 11:29:56 +0530 Subject: [PATCH] fix --- src/login.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/login.ts b/src/login.ts index 72086239..9c629b0a 100644 --- a/src/login.ts +++ b/src/login.ts @@ -9,7 +9,7 @@ import * as jsyaml from 'js-yaml'; import * as util from 'util'; import { getArcKubeconfig } from './arc-login'; -function getKubeconfig(): string { +export function getKubeconfig(): string { const method = core.getInput('method', { required: true }); if (method == 'kubeconfig') { const kubeconfig = core.getInput('kubeconfig', { required: true }); @@ -102,7 +102,7 @@ export async function setContext(kubeconfigPath: string) { } } -async function run() { +export async function run() { try { let kubeconfig = ''; const cluster_type = core.getInput('cluster-type', { required: true });