Repository navigation
[release-1.21] Retry the kyverno policy apply until the webhook is up - #9308
Merged
cert-manager-prow[bot] merged 1 commit intoSep 8, 2026
Conversation
ci-cert-manager-release-1.21-e2e-v1-36-bestpractice-install has failed every periodic run since 2026-09-04. The kyverno admission webhook registers itself from inside the running pod, after `helm upgrade --wait` has already returned. The next step, applying policy.yaml, lands in that window and fails: Error from server (InternalError): Internal error occurred: failed calling webhook "mutate-policy.kyverno.svc": failed to call webhook: Post "https://kyverno-svc.kyverno.svc:443/policymutate?timeout=10s": dial tcp 10.0.17.91:443: connect: connection refused Retry the apply with a short backoff, as master already does since cert-manager#9041. Only that hunk is backported. The rest of cert-manager#9041 belongs to the Kyverno 3.8.1 / ValidatingPolicy migration, which this branch never took, and it conflicts on cherry-pick. Signed-off-by: Richard Wall <[email protected]> Co-Authored-By: Claude Fable 5 <[email protected]>
Member
Author
|
/kind flake |
This was referenced Sep 8, 2026
Collaborator
|
Looks like we have this in master for a while. So makes sense to me to be in the 1.21 branch /lgtm |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hjoshi123 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cert-manager-prow
Bot
merged commit Sep 8, 2026
6a05b37
into
cert-manager:release-1.21
6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
ci-cert-manager-release-1.21-e2e-v1-36-bestpractice-installperiodic, which has failed every run since 2026-09-04.Part of #9237, the v1.21.2 release tracker.
The kyverno admission webhook registers itself from inside the running pod, after
helm upgrade --waithas returned. The very next step,kubectl applyofpolicy.yaml, lands in that window and fails withconnect: connection refused, so no test runs. This backports the retry loop that master has had since #9041.Only the retry hunk is backported. Prow cannot cherry-pick #9041 as a whole: it conflicts on
make/config/kyverno/kustomization.yamlandpolicy.yaml, because the rest of that PR is the Kyverno 3.8.1 / ValidatingPolicy migration which this branch never took.Evidence
Last four runs of the tab all fail in
e2e-setup-kyvernowith the same error, for example build 2097150545235021824:The chart (3.6.2) and image (v1.16.2) are unchanged between the last passing and first failing run. The same race also hits
ci-cert-manager-release-1.20-e2e-v1-35-bestpractice-install, which has a matching PR.[Claude Fable 5]