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

Support K8s v1.29 and Drop K8s v1.26 #2039

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

tenzen-y
Copy link
Member

What this PR does / why we need it:
I added support for the K8s v1.29 and dropped the K8s v1.26.

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #1999

Checklist:

  • Docs included if any changes are user facing

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y

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

@coveralls
Copy link

coveralls commented Mar 28, 2024

Pull Request Test Coverage Report for Build 8473367682

Details

  • 2 of 3 (66.67%) changed or added relevant lines in 3 files are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.08%) to 42.854%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/apis/kubeflow.org/v1/openapi_generated.go 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/pytorch/hpa.go 4 81.36%
pkg/controller.v1/mpi/mpijob_controller.go 4 81.05%
Totals Coverage Status
Change from base Build 8472976198: -0.08%
Covered Lines: 3751
Relevant Lines: 8753

💛 - Coveralls

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
Copy link
Member Author

Choose a reason for hiding this comment

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

I addressed the following golangci-lint error:

SA1019: "k8s.io/utils/pointer" is deprecated: Use functions in k8s.io/utils/ptr instead: ptr.To to obtain a pointer, ptr.Deref to dereference a pointer, ptr.Equal to compare dereferenced pointers. (staticcheck)

Comment on lines -54 to +55
MXJobReplicaTypeWorker: &ReplicaSpec{
Replicas: pointer.Int32(replicas),
MXJobReplicaTypeWorker: {
Replicas: ptr.To[int32](replicas),
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed the unnecessary type specifying.

@johnugeorge
Copy link
Member

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Mar 28, 2024
@google-oss-prow google-oss-prow bot merged commit fb35949 into master Mar 28, 2024
65 checks passed
@tenzen-y tenzen-y deleted the support-k8s-129 branch March 28, 2024 21:02
tedhtchang pushed a commit to tedhtchang/training-operator that referenced this pull request Apr 5, 2024
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
(cherry picked from commit fb35949)
deepanker13 pushed a commit to deepanker13/deepanker-training-operator that referenced this pull request Apr 8, 2024
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
Signed-off-by: deepanker13 <deepanker.gupta@nutanix.com>
johnugeorge pushed a commit to johnugeorge/training-operator that referenced this pull request Apr 28, 2024
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
johnugeorge pushed a commit to johnugeorge/training-operator that referenced this pull request Apr 28, 2024
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Kubernetes v1.27 - v1.29
3 participants