addressed nit picks
This commit is contained in:
parent
579411ab66
commit
269939dbae
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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
|
||||
|
@ -23,7 +23,7 @@ In both these approaches it is recommended to store these contents (kubeconfig f
|
||||
</thead>
|
||||
<tr>
|
||||
<td><code>method</code><br/>Method</td>
|
||||
<td>(Optional) Acceptable values: kubeconfig/service-account/spn. Default value: kubeconfig</td>
|
||||
<td>(Optional) Acceptable values: kubeconfig/service-account/SPN. Default value: kubeconfig</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>kubeconfig</code><br/>Kubectl config</td>
|
||||
|
@ -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:
|
||||
|
@ -52,7 +52,7 @@ async function getAzureAccessToken(servicePrincipalId, servicePrincipalKey, tena
|
||||
export async function getArcKubeconfig(): Promise<string> {
|
||||
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'.");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user