Add ignoreDifferences for MachineSet boot images to appset-cluster-hosted-mgmt#80024
Conversation
…sted-mgmt The hosted-mgmt cluster is experiencing a boot image hot loop because ArgoCD reverts the AMI changes made by the Machine Config Operator (MCO). This is the same issue that was fixed for build clusters in PR openshift#79716. Add an ignoreDifferences rule for machine.openshift.io MachineSet resources to exclude the .spec.template.spec.providerSpec.value.ami field from ArgoCD reconciliation, matching the pattern already used in appset-cluster-build.
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( |
|
Hi @redhat-chai-bot. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughAdds an ChangesApplicationSet AMI Drift Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/ok-to-test |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepsm007, redhat-chai-bot 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 |
|
@redhat-chai-bot: 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. |
…sted-mgmt (openshift#80024) The hosted-mgmt cluster is experiencing a boot image hot loop because ArgoCD reverts the AMI changes made by the Machine Config Operator (MCO). This is the same issue that was fixed for build clusters in PR openshift#79716. Add an ignoreDifferences rule for machine.openshift.io MachineSet resources to exclude the .spec.template.spec.providerSpec.value.ami field from ArgoCD reconciliation, matching the pattern already used in appset-cluster-build. Co-authored-by: Chai Bot <chai-bot@redhat.com>
…sted-mgmt (openshift#80024) The hosted-mgmt cluster is experiencing a boot image hot loop because ArgoCD reverts the AMI changes made by the Machine Config Operator (MCO). This is the same issue that was fixed for build clusters in PR openshift#79716. Add an ignoreDifferences rule for machine.openshift.io MachineSet resources to exclude the .spec.template.spec.providerSpec.value.ami field from ArgoCD reconciliation, matching the pattern already used in appset-cluster-build. Co-authored-by: Chai Bot <chai-bot@redhat.com>
…sted-mgmt (openshift#80024) The hosted-mgmt cluster is experiencing a boot image hot loop because ArgoCD reverts the AMI changes made by the Machine Config Operator (MCO). This is the same issue that was fixed for build clusters in PR openshift#79716. Add an ignoreDifferences rule for machine.openshift.io MachineSet resources to exclude the .spec.template.spec.providerSpec.value.ami field from ArgoCD reconciliation, matching the pattern already used in appset-cluster-build. Co-authored-by: Chai Bot <chai-bot@redhat.com>
Summary
The
hosted-mgmtcluster is experiencing a boot image hot loop because ArgoCD reverts the AMI changes made by the Machine Config Operator (MCO). All 11 MAPI MachineSets are affected, causing themachine-configclusteroperator to be Degraded.This is the same issue that was fixed for build clusters in PR #79716 — the
ignoreDifferencesrules for MachineSet boot images were added toappset-cluster-buildbut not toappset-cluster-hosted-mgmt.Changes
Add an
ignoreDifferencesentry formachine.openshift.io/MachineSetresources to exclude.spec.template.spec.providerSpec.value.amifrom ArgoCD reconciliation. This matches the pattern already used inappset-cluster-build.The
RespectIgnoreDifferences=truesync option is already present in the hosted-mgmt ApplicationSet.Additional Context
appset-cluster-build)Summary by CodeRabbit
This PR resolves a boot image hot loop affecting the hosted-mgmt cluster by adding an
ignoreDifferencesrule to theappset-cluster-hosted-mgmtApplicationSet.The problem: ArgoCD's automated reconciliation was reverting AMI (Amazon Machine Image) changes that the Machine Config Operator (MCO) applies to MachineSet resources across all 11 MAPI MachineSets in hosted-mgmt, causing the machine-config clusteroperator to enter a Degraded state.
The solution: A new
ignoreDifferencesentry formachine.openshift.io/MachineSetresources has been added (lines 39-42) with ajqPathExpressionthat excludes.spec.template.spec.providerSpec.value.amifrom ArgoCD's drift detection. This prevents ArgoCD from reverting legitimate AMI updates made by the MCO, while allowing other MachineSet changes to be reconciled normally. TheRespectIgnoreDifferences=truesync option is already enabled in the ApplicationSet, so this configuration takes immediate effect.This change mirrors the fix previously applied to the
appset-cluster-buildApplicationSet (PR#79716).