Skip to content

Commit b6c6090

Browse files
committed
fix: correct AuthPolicy name in validation script (#658)
The validation script was checking for 'gateway-auth-policy' but the actual deployed AuthPolicy is named 'gateway-default-auth'. This caused false 'NotFound' warnings despite the AuthPolicy being correctly deployed and functional. Changes: - Update scripts/validate-deployment.sh line 383 to check for gateway-default-auth instead of gateway-auth-policy Fixes #658
1 parent 409b0a7 commit b6c6090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate-deployment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ print_header "3️⃣ Policy Status"
380380
print_check "AuthPolicy"
381381
AUTHPOLICY_COUNT=$(kubectl get authpolicy -A --no-headers 2>/dev/null | wc -l || echo "0")
382382
if [ "$AUTHPOLICY_COUNT" -gt 0 ]; then
383-
AUTHPOLICY_STATUS=$(kubectl get authpolicy -n openshift-ingress gateway-auth-policy -o jsonpath='{.status.conditions[?(@.type=="Accepted")].status}' 2>/dev/null || echo "NotFound")
383+
AUTHPOLICY_STATUS=$(kubectl get authpolicy -n openshift-ingress gateway-default-auth -o jsonpath='{.status.conditions[?(@.type=="Accepted")].status}' 2>/dev/null || echo "NotFound")
384384
if [ "$AUTHPOLICY_STATUS" = "True" ]; then
385385
print_success "AuthPolicy is configured and accepted"
386386
else

0 commit comments

Comments
 (0)