kubernetes-ingress-controller
kubernetes-ingress-controller copied to clipboard
`TestValidationWebhook` failing due to a missing secret
It seems that TestValidationWebhook test sometimes fails due to a missing secret:
=== CONT TestValidationWebhook
webhook_test.go:580: verifying that a JWT credential which has keys with missing values fails validation
time="2022-09-14T15:05:57Z" level=error msg="failed to run validation" component=admission-server error="Secret \"8df64aa8-f52c-4700-91f4-5fe3e6d216f5\" not found"
webhook_test.go:611:
Error Trace: /home/runner/work/kubernetes-ingress-controller/kubernetes-ingress-controller/test/integration/webhook_test.go:611
Error: "Internal error occurred: failed calling webhook \"validations.kong.konghq.com\": failed to call webhook: an error on the server (\"Secret \\\"8df64aa8-f52c-4700-91f4-5fe3e6d216f5\\\" not found\") has prevented the request from succeeding" does not contain "some fields were invalid due to missing data: rsa_public_key, key, secret"
Test: TestValidationWebhook
Exemplar failing pipeline: https://github.com/Kong/kubernetes-ingress-controller/actions/runs/3053780411/jobs/4924842220#step:5:1288