Skip to content

Commit 069ecdf

Browse files
committed
Updated exit code to 0 on eaysauth
1 parent 0015705 commit 069ecdf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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)