-
Notifications
You must be signed in to change notification settings - Fork 153
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
add cilium v1.14 and canal v3.26 #12561
Conversation
/test pre-kubermatic-test |
/test pre-kubermatic-cilium-e2e |
/retest |
@@ -268,7 +280,7 @@ func ValidateValuesUpdate(newValues, oldValues map[string]any, fieldPath *field. | |||
func validateImmutableValues(newValues, oldValues map[string]any, fieldPath *field.Path, immutableValues []string) field.ErrorList { | |||
allErrs := field.ErrorList{} | |||
for _, v := range immutableValues { | |||
if !reflect.DeepEqual(newValues[v], oldValues[v]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we define this as a
// compareMaps is needed because DeepEqual doesn't work for ......
func equalMaps(a, b ........) bool {
return ......
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say this because this is that type of code that I would come across, wonder "why isn't this just using reflect.DeepEqual?", change it and subtly break something. Explaning why a standard function doesn't apply is vital :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you fine with writing a test for the validateImmutableValues
function instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would that look like? What are you then testing and how would that test ensure that the actual code is working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
after speaking to @xrstf.
LGTM label has been added. Git tree hash: 861a910c9def3fa0dc3342fcc71531a486302725
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: embik, WeirdMachine, xrstf 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 |
What this PR does / why we need it:
Bump Canal and Cilium CNI to next version.
Cilium v1.14 is confirmed to fix #12104
Update Cilium v1.11 and v1.12 to latest patch.
The Helm values
clusterPoolIPv4PodCIDR
andclusterPoolIPv6PodCIDR
were deprecated and removed in Cilium v1.14, therefore I replaced it withclusterPoolIPv4PodCIDRList
andclusterPoolIPv6PodCIDRList
which was already available in v1.13. This is only relevant for Cilium installed as application (v1.13+)What type of PR is this?
/kind chore
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: