Fix infinite reconciliation on webhook resources#1651
Fix infinite reconciliation on webhook resources#1651istio-testing merged 1 commit intoistio-ecosystem:mainfrom
Conversation
03c5c81 to
52e5dff
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1651 +/- ##
===========================================
- Coverage 80.96% 52.44% -28.53%
===========================================
Files 50 50
Lines 2474 2479 +5
===========================================
- Hits 2003 1300 -703
- Misses 347 1096 +749
+ Partials 124 83 -41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
nrfox
left a comment
There was a problem hiding this comment.
One very small nit otherwise LGTM.
Curious how we caught the validating webhook but not the mutating webhook?
52e5dff to
5308696
Compare
Honestly this behavior was known and stable for a looong time.. I'm wondering how we didn't hit this bug earlier. |
|
/retest |
1 similar comment
|
/retest |
|
/retest |
| } | ||
| case *admissionv1.MutatingWebhookConfiguration: | ||
| for i := range len(webhookConfig.Webhooks) { | ||
| webhookConfig.Webhooks[i].ClientConfig.CABundle = nil |
There was a problem hiding this comment.
Dont we have to clear FailurePolicy for the MutatingWebhookConfiguration as well?
webhookConfig.Webhooks[i].FailurePolicy = nil
There was a problem hiding this comment.
nope. istiod never modifies it, it only does it for the ValidatingWebhookConfiguration
|
@dgn Added a hold for you to take a look at my review comment. Please feel free to remove it, if changes are not required. |
|
/retest |
|
/cherry-pick release-1.29 |
|
@dgn: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest |
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
5308696 to
3d2f26c
Compare
|
In response to a cherrypick label: #1651 failed to apply on top of branch "release-1.0": |
|
In response to a cherrypick label: new issue created for failed cherrypick: #1658 |
|
In response to a cherrypick label: new pull request created: #1659 |
|
In response to a cherrypick label: new pull request created: #1660 |
* upstream/main: Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#1666) Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#1665) Automator: Update dependencies in istio-ecosystem/sail-operator@main (istio-ecosystem#1662) Fix infinite reconciliation on webhook resources (istio-ecosystem#1651)
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
* upstream/release-1.26: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1670)
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane. Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
* upstream/release-1.0: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1671)
* upstream/release-1.0: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1671)
* upstream/release-1.0: Fix infinite reconciliation on webhook resources (istio-ecosystem#1651) (istio-ecosystem#1671)
istiod updates the CABundle and FailurePolicy on its ValidatingWebhookConfigurations and MutatingWebhookConfigurations. The controller needs to ignore those changes to avoid continuous reconciliation of the control plane.