diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1a6ed74..d4d6ddb 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/README.md b/README.md
index 0898fb0..fdf4960 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ In both these approaches it is recommended to store these contents (kubeconfig f
method Method |
- (Optional) Acceptable values: kubeconfig/service-account/spn. Default value: kubeconfig |
+ (Optional) Acceptable values: kubeconfig/service-account/SPN. Default value: kubeconfig |
kubeconfig Kubectl config |
diff --git a/action.yml b/action.yml
index 3001753..d66a88b 100644
--- a/action.yml
+++ b/action.yml
@@ -7,7 +7,7 @@ inputs:
required: true
default: 'generic'
method:
- description: 'Acceptable values: kubeconfig or service-account or spn'
+ description: 'Acceptable values: kubeconfig or service-account or SPN'
required: true
default: 'kubeconfig'
kubeconfig:
diff --git a/src/arc-login.ts b/src/arc-login.ts
index b09c79c..0b5b365 100644
--- a/src/arc-login.ts
+++ b/src/arc-login.ts
@@ -52,7 +52,7 @@ async function getAzureAccessToken(servicePrincipalId, servicePrincipalKey, tena
export async function getArcKubeconfig(): Promise {
try {
let method = core.getInput('method');
- if (method != 'service-account' && method != 'spn'){
+ if (method != 'service-account' && method != 'SPN'){
throw Error("Supported methods for arc cluster are 'service-account' and 'spn'.");
}