Skip to content

Commit 81ff297

Browse files
yoav-katzCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9c47bf9 commit 81ff297

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e-tests/tests/cert-manager-tls/30-verify-sans.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ commands:
1515
local san="$2"
1616
1717
for i in {1..60}; do
18-
if kubectl -n "$NAMESPACE" get certificate "$cert_name" -o jsonpath='{.spec.dnsNames}' | grep -q -- "$san"; then
18+
if kubectl -n "$NAMESPACE" get certificate "$cert_name" -o jsonpath='{range .spec.dnsNames[*]}{.}{"\n"}{end}' | grep -Fxq -- "$san"; then
1919
return 0
2020
fi
2121
sleep 5

0 commit comments

Comments
 (0)