Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to not use NetworkConfig in hash calculation if it has default value #250

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Edwinhr716
Copy link
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it

When calculating the template hash, if the NetworkConfig has the defaulted value, it will not be used. This is to prevent a rolling update to be triggered when upgrading from a previous version.

Which issue(s) this PR fixes

Fixes #240

Special notes for your reviewer

Does this PR introduce a user-facing change?


@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 7, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 7, 2024
@ahg-g
Copy link
Contributor

ahg-g commented Nov 7, 2024

Did you test that this actually addresses the issue?

@Edwinhr716
Copy link
Contributor Author

Yes. Tested upgrading from 0.2.0 to 0.4.1, no rolling update. Afterward I made a change that doesn't trigger rolling update, NetworkConfig did get defaulted, but it doesn't trigger rolling update either.

@ahg-g
Copy link
Contributor

ahg-g commented Nov 7, 2024

/lgtm
/approve

Thanks, can you please submit a patch?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 7, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, Edwinhr716

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 7, 2024
@k8s-ci-robot k8s-ci-robot merged commit 8fe6644 into kubernetes-sigs:main Nov 7, 2024
9 checks passed
k8s-ci-robot added a commit that referenced this pull request Nov 7, 2024
…-upstream-release-0.4.0

Automated cherry pick of #250: change to not use NetworkConfig in hash calculation if it has default value
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When rollout new controller version, it should not trigger a rolling update
3 participants