Skip to content

Commit 2fccef4

Browse files
authored
Merge pull request #79 from dminkovski/aks
Updated exit code to 0 on eaysauth scripts
2 parents 730d0a6 + 8c3783d commit 2fccef4

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@
1818
"ghcr.io/devcontainers/features/git:1": {
1919
"version": "2.39.1"
2020
},
21-
"ghcr.io/devcontainers-contrib/features/typescript:2": {
22-
23-
}
24-
,
21+
"ghcr.io/devcontainers-contrib/features/typescript:2": {},
22+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
23+
"version": "1.1.8"
24+
},
2525
"docker-in-docker": {
2626
"version": "latest",
2727
"moby": true,
2828
"dockerDashComposeVersion": "v1"
29-
},
30-
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
31-
29+
}
3230
},
3331
"customizations": {
3432
"vscode": {

deploy/aks/scripts/easyauth-down.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ foreach ($line in $output) {
1313
if($Env:AZURE_USE_EASY_AUTH -eq "true"){
1414
Write-Host "Enabled EasyAuth for the AKS Cluster"
1515
} else {
16-
exit 1;
16+
exit 0;
1717
}
1818

1919
Write-Host "Deleting Entra App ${Env:adAppName}:${Env:AZURE_AD_APP_ID}"

deploy/aks/scripts/easyauth-down.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ done <<< "$output"
2222
if [ "$AZURE_USE_EASY_AUTH" == "true" ]; then
2323
echo "Enabled EasyAuth for the AKS Cluster"
2424
else
25-
exit 1
25+
exit 0
2626
fi
2727

2828
# Deleting Entra App

deploy/aks/scripts/easyauth.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if($env:AZURE_USE_EASY_AUTH -eq "true"){
1919
} else {
2020
Write-Host "EasyAuth is not enabled for the AKS Cluster"
2121
Write-Host "If you want to enable EasyAuth, please set the AZURE_USE_EASY_AUTH environment variable to true"
22-
exit 1;
22+
exit 0;
2323
}
2424

2525
$location = $env:AZURE_LOCATION

deploy/aks/scripts/easyauth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [ "$AZURE_USE_EASY_AUTH" = "true" ]; then
3737
else
3838
echo "EasyAuth is not enabled for the AKS Cluster"
3939
echo "If you want to enable EasyAuth, please set the AZURE_USE_EASY_AUTH environment variable to true"
40-
exit 1
40+
exit 0
4141
fi
4242

4343
location=$AZURE_LOCATION

0 commit comments

Comments
 (0)