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

Bump k8s to v1.30 release train #9335

Merged
merged 5 commits into from
Oct 29, 2024
Merged

Conversation

hjiawei
Copy link
Contributor

@hjiawei hjiawei commented Oct 12, 2024

Description

This changeset upgrades k8s dependencies to v1.30 release train.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

Calico is now built with Go 1.23.2 against Kubernetes v1.30.5.

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@marvin-tigera marvin-tigera added this to the Calico v3.30.0 milestone Oct 12, 2024
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Oct 12, 2024
@hjiawei hjiawei force-pushed the k8s-1.30 branch 6 times, most recently from 46277a2 to e7f5bec Compare October 22, 2024 20:26
@tomastigera
Copy link
Contributor

🚂

@hjiawei
Copy link
Contributor Author

hjiawei commented Oct 22, 2024

Requires calico/go-build k8s utilities bump in projectcalico/go-build#597.

@hjiawei
Copy link
Contributor Author

hjiawei commented Oct 23, 2024

lib.Makefile Outdated Show resolved Hide resolved
metadata.mk Outdated Show resolved Hide resolved
@@ -57,17 +57,17 @@ gen-files .generate_files: lint-cache-dir clean-generated
sh -c '$(GIT_CONFIG_SSH) defaulter-gen \
--v 1 --logtostderr \
--go-header-file "/go/src/$(PACKAGE_NAME)/hack/boilerplate/boilerplate.go.txt" \
--input-dirs "$(PACKAGE_NAME)/pkg/apis/projectcalico/v3" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--input-dirs flag is removed in kubernetes/code-generator@4d6b3bd.

--extra-peer-dirs "$(PACKAGE_NAME)/pkg/apis/projectcalico/v3" \
--output-file-base "zz_generated.defaults"'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--output-file-base is renamed in kubernetes/code-generator@1441417.

@@ -78,8 +78,16 @@ gen-files .generate_files: lint-cache-dir clean-generated
sh -c '$(GIT_CONFIG_SSH) openapi-gen \
--v 1 --logtostderr \
--go-header-file "/go/src/$(PACKAGE_NAME)/hack/boilerplate/boilerplate.go.txt" \
--input-dirs "$(PACKAGE_NAME)/pkg/apis/projectcalico/v3,k8s.io/api/core/v1,k8s.io/api/networking/v1,k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/version,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/util/intstr,$(PACKAGE_NAME)/pkg/lib/numorstring" \
--output-package "$(PACKAGE_NAME)/pkg/openapi"'
--output-dir "/go/src/$(PACKAGE_NAME)/pkg/openapi" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--output-dir flag is enforced in kubernetes/code-generator@0723f18.

@hjiawei hjiawei marked this pull request as ready for review October 23, 2024 01:33
@hjiawei hjiawei requested a review from a team as a code owner October 23, 2024 01:33
felix/bpf/proxy/syncer.go Outdated Show resolved Hide resolved
felix/bpf/proxy/syncer.go Outdated Show resolved Hide resolved
felix/bpf/proxy/syncer.go Outdated Show resolved Hide resolved
felix/bpf/proxy/syncer.go Outdated Show resolved Hide resolved
felix/bpf/proxy/syncer.go Outdated Show resolved Hide resolved
felix/bpf/proxy/syncer.go Show resolved Hide resolved
Comment on lines +1457 to +1459
a.ExternallyAccessible() == b.ExternallyAccessible() &&
a.UsesClusterEndpoints() == b.UsesClusterEndpoints() &&
a.UsesLocalEndpoints() == b.UsesLocalEndpoints()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These fields exist in k8s ServicePort interface but not as part of the comparison. They are probably added after we implement ServicePortEqual function. @tomastigera PTAL this and the new cidrEqual function (replaces stringsEqual).

Comment on lines +407 to +409
type IPOrIPNet interface {
net.IP | *net.IPNet
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@hjiawei hjiawei merged commit f9ad3d8 into projectcalico:master Oct 29, 2024
3 checks passed
@hjiawei hjiawei deleted the k8s-1.30 branch October 29, 2024 16:52
@hjiawei hjiawei mentioned this pull request Jan 31, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants