Skip to content

Comments

Eliminate expensive and unnecessary MachineConfig updates#1473

Open
jmencak wants to merge 1 commit intoopenshift:mainfrom
jmencak:4.22-GetMutatedMachineConfig-fix
Open

Eliminate expensive and unnecessary MachineConfig updates#1473
jmencak wants to merge 1 commit intoopenshift:mainfrom
jmencak:4.22-GetMutatedMachineConfig-fix

Conversation

@jmencak
Copy link
Contributor

@jmencak jmencak commented Feb 18, 2026

GetMutatedMachineConfig() PPC function does not handle comparison between MachineConfigs well. The spec.Config.Raw field contains a raw JSON string, which first needs to be normalized prior to comparison. Otherwise, semantically identical but order-different raw json data will trigger unnecessary MachineConfig updates. This issue affects both regular OpenShift and HyperShift.

This change resolves this issue by first normalizing the raw JSON strings in both MachineConfigs prior to comparison.

GetMutatedMachineConfig() PPC function does not handle comparison between
MachineConfigs well.  The spec.Config.Raw field contains a raw JSON string,
which first needs to be normalized prior to comparison.  Otherwise,
semantically identical but order-different raw json data will trigger
unnecessary MachineConfig updates.  This issue affects both regular OpenShift
and HyperShift.

This change resolves this issue by first normalizing the raw JSON strings in
both MachineConfigs prior to comparison.
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 18, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 18, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 18, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmencak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2026
@jmencak jmencak marked this pull request as ready for review February 19, 2026 09:39
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 19, 2026
@openshift-ci openshift-ci bot requested review from Tal-or and yanirq February 19, 2026 09:40
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 19, 2026

@jmencak: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant