-
Notifications
You must be signed in to change notification settings - Fork 217
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
Upgrade K8s dependencies to v1.29 #633
Upgrade K8s dependencies to v1.29 #633
Conversation
/hold |
I think it's the easiest path if you include the golang upgrade here. |
I'll try to do it. |
af91a0f
to
f8cfc3e
Compare
@alculquicondor The Bumping Go version seems to depend on controller-gen version: https://github.com/kubeflow/mpi-operator/actions/runs/8722386744/job/23928137672?pr=633 So, I'd like to bump the go version in your PR. |
6ad6438
to
15bb02b
Compare
15bb02b
to
a80dbfd
Compare
can you rebase? |
I have rebased, but I faced other issues. So, I'm trying to investigate the issue. |
a80dbfd
to
5c499dc
Compare
-@GOPATH=/tmp go install volcano.sh/volcano/cmd/scheduler@$(VOLCANO_SCHEDULER_VERSION) | ||
rm -rf /tmp/volcano.sh/volcano | ||
git clone -b $(VOLCANO_SCHEDULER_VERSION) --depth 1 https://github.com/volcano-sh/volcano /tmp/volcano.sh/volcano |
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.
Due to golang/go#44840, go install
doesn't work fine.
Makefile
Outdated
@@ -118,11 +118,11 @@ test_images: | |||
|
|||
.PHONY: tidy | |||
tidy: | |||
go mod tidy -go 1.20 | |||
go mod tidy -go 1.22 |
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.
go mod tidy -go 1.22 | |
go mod tidy |
It's already in go.mod
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.
That makes sense.
Done.
Makefile
Outdated
|
||
.PHONY: lint | ||
lint: bin/golangci-lint ## Run golangci-lint linter | ||
$(GOLANGCI_LINT) run --new-from-rev=origin/master --go 1.20 | ||
$(GOLANGCI_LINT) run --new-from-rev=origin/master --go 1.22 |
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 also remove this flag?
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.
SGTM
Done.
5c499dc
to
35a0d16
Compare
test/e2e/e2e_suite_test.go
Outdated
@@ -172,7 +172,7 @@ func bootstrapKindCluster() error { | |||
} | |||
|
|||
func installOperator() error { | |||
err := runCommand(kubectlPath, "apply", "-k", operatorManifestsPath) | |||
err := runCommand(kubectlPath, "apply", "--server-side=true", "-k", operatorManifestsPath) |
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.
interesting.... This will have to go to the documentation as well.
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.
For now, update the README. Just --server-side
should be enough.
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.
interesting.... This will have to go to the documentation as well.
Based on this error, I added the server-side flag.
For sire, we should mention it in the document.
For now, update the README. Just --server-side should be enough.
That makes sense.
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.
Done.
The |
NVM. I found another reason. |
f01b67b
to
1582628
Compare
@@ -1176,6 +1176,7 @@ func newInt32(v int32) *int32 { | |||
func eventForJob(event corev1.Event, job *kubeflow.MPIJob) corev1.Event { | |||
event.Namespace = job.Namespace | |||
event.Source.Component = "mpi-job-controller" | |||
event.ReportingController = "mpi-job-controller" |
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.
It seems that dedicated ReportingController
is returned.
I0418 01:30:35.591211 23178 event.go:364] Event(v1.ObjectReference{Kind:"MPIJob", Namespace:"test-2mcds", Name:"job", UID:"ef9b9814-9220-4d4c-bbdd-e93b23486d6d", APIVersion:"kubeflow.org/v2beta1", ResourceVersion:"223", FieldPath:""}): type: 'Normal' reason: 'MPIJobCreated' MPIJob test-2mcds/job is created.
+++++++++++++++++++++++++++++++++++: &v1.Event{
... // 5 ignored and 7 identical fields
Action: "",
Related: nil,
- ReportingController: "",
+ ReportingController: "mpi-job-controller",
ReportingInstance: "",
}
@alculquicondor Could you take another look? |
/hold cancel |
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.
just one nit
.github/workflows/golangci-lint.yml
Outdated
version: v1.53.3 | ||
args: --timeout=5m --go=1.20 | ||
version: v1.57.2 | ||
args: --timeout=5m --go=1.22 |
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 remove --go=1.22
?
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.
Nice catch!
Done.
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
1582628
to
20be1ab
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor 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 |
I upgraded the K8s dependencies to v1.29. Also, I upgraded the scheduler-plugins version to the latest (v1.28.9).