minor fix
This commit is contained in:
parent
269939dbae
commit
455b497ed1
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
|
- uses: atharvamulmuley/k8s-set-context@cluster-connect-2
|
||||||
with:
|
with:
|
||||||
method: SPN
|
method: 'SPN'
|
||||||
cluster-type: 'arc'
|
cluster-type: 'arc'
|
||||||
creds: '${{ secrets.AZURE_CREDS }}'
|
creds: '${{ secrets.AZURE_CREDS }}'
|
||||||
cluster-name: arcaction
|
cluster-name: arcaction
|
||||||
|
@ -57,8 +57,8 @@ function getArcKubeconfig() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
let method = core.getInput('method');
|
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'.");
|
throw Error("Supported methods for arc cluster are 'service-account' and 'SPN'.");
|
||||||
}
|
}
|
||||||
let resourceGroupName = core.getInput('resource-group');
|
let resourceGroupName = core.getInput('resource-group');
|
||||||
let clusterName = core.getInput('cluster-name');
|
let clusterName = core.getInput('cluster-name');
|
||||||
|
@ -53,7 +53,7 @@ export async function getArcKubeconfig(): Promise<string> {
|
|||||||
try {
|
try {
|
||||||
let method = core.getInput('method');
|
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'.");
|
throw Error("Supported methods for arc cluster are 'service-account' and 'SPN'.");
|
||||||
}
|
}
|
||||||
|
|
||||||
let resourceGroupName = core.getInput('resource-group');
|
let resourceGroupName = core.getInput('resource-group');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user