kms: don't resync preflight controller when apiserver changes - #2389
Conversation
The preflight controller can only run if the ObservedConfigHash field is properly updated.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughThe KMS preflight controller no longer registers the API server informer for sync-triggering events. It continues watching the operator client informer, with periodic resync behavior unchanged. ChangesKMS preflight controller
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
thanks /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, p0lyn0mial 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 |
|
@bertinatto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
When the user changes
apiserver/cluster, the preflight controller currently resyncs. However, the controller will only be able to run the checks if theObservedConfigHashfield was set accordingly by the key controller. In that case, it's better to just rely operator client for that status update instead.Summary by CodeRabbit