Skip to content

Commit bd7b323

Browse files
scotwellsclaude
andcommitted
test(e2e): wait for CA issuance before copying its secret
The gateway-accepted test created a cert-manager CA Certificate and immediately copied its secret into envoy-gateway-system, racing issuance. On slow runners the secret didn't exist yet, failing with "secrets <name> not found / no objects passed to apply" and flaking the suite. Assert the Certificate is Ready first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2f46ca8 commit bd7b323

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/e2e/gateway/chainsaw-test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ spec:
5656
ca:
5757
secretName: ($clusterIssuerName)
5858

59+
# Wait for cert-manager to issue the CA before the script copies its
60+
# secret. Without this, the copy races issuance and intermittently fails
61+
# with "secrets <name> not found / no objects passed to apply".
62+
- assert:
63+
cluster: nso-infra
64+
resource:
65+
apiVersion: cert-manager.io/v1
66+
kind: Certificate
67+
metadata:
68+
name: (join('-', [$clusterIssuerName, 'ca']))
69+
namespace: cert-manager
70+
status:
71+
conditions:
72+
- type: Ready
73+
status: "True"
74+
5975
- script:
6076
# skipCommandOutput: true
6177
# skipLogOutput: true

0 commit comments

Comments
 (0)