From 455b497ed120f9b29a4ae6b29d507044ac48fee1 Mon Sep 17 00:00:00 2001 From: Atharva Mulmuley Date: Wed, 28 Apr 2021 18:19:59 +0530 Subject: [PATCH] minor fix --- .github/workflows/main.yml | 2 +- lib/arc-login.js | 4 ++-- src/arc-login.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4d6ddba..15574490 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: - uses: atharvamulmuley/k8s-set-context@cluster-connect-2 with: - method: SPN + method: 'SPN' cluster-type: 'arc' creds: '${{ secrets.AZURE_CREDS }}' cluster-name: arcaction diff --git a/lib/arc-login.js b/lib/arc-login.js index d0a9b641..7ee1c97a 100644 --- a/lib/arc-login.js +++ b/lib/arc-login.js @@ -57,8 +57,8 @@ function getArcKubeconfig() { return __awaiter(this, void 0, void 0, function* () { try { let method = core.getInput('method'); - if (method != 'service-account' && method != 'spn') { - throw Error("Supported methods for arc cluster are 'service-account' and 'spn'."); + if (method != 'service-account' && method != 'SPN') { + throw Error("Supported methods for arc cluster are 'service-account' and 'SPN'."); } let resourceGroupName = core.getInput('resource-group'); let clusterName = core.getInput('cluster-name'); diff --git a/src/arc-login.ts b/src/arc-login.ts index 0b5b365b..008f6fc2 100644 --- a/src/arc-login.ts +++ b/src/arc-login.ts @@ -53,7 +53,7 @@ export async function getArcKubeconfig(): Promise { try { let method = core.getInput('method'); if (method != 'service-account' && method != 'SPN'){ - throw Error("Supported methods for arc cluster are 'service-account' and 'spn'."); + throw Error("Supported methods for arc cluster are 'service-account' and 'SPN'."); } let resourceGroupName = core.getInput('resource-group');