Skip to content

Conversation

@henschwartz
Copy link

[TASK] Upgrade Go to 1.24 - pvcviewer-controller component #723

  • Update CI workflow pvcviewer_controller_unit_test.yaml to use go-version 1.24
  • Update go.mod to go 1.24
  • Update Dockerfile GOLANG_VERSION to 1.24

@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Nov 10, 2025
@google-oss-prow google-oss-prow bot added the area/ci area - related to ci label Nov 10, 2025
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign thesuperzapper for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@google-oss-prow google-oss-prow bot requested a review from kimwnasptd November 10, 2025 14:01
@google-oss-prow google-oss-prow bot added area/controller area - related to controller components area/v1 area - version - kubeflow notebooks v1 labels Nov 10, 2025
@henschwartz henschwartz force-pushed the upgrade-pvcviewer-go-1.24 branch from a9a367a to b794c32 Compare November 10, 2025 14:05
@google-oss-prow google-oss-prow bot added size/XS and removed size/L labels Nov 10, 2025
@henschwartz henschwartz marked this pull request as draft November 10, 2025 14:06
- Update CI workflow pvcviewer_controller_unit_test.yaml to use go-version 1.24
- Update go.mod to go 1.24
- Update Dockerfile GOLANG_VERSION to 1.24

Fixes kubeflow#723

Signed-off-by: Hen Schwartz <[email protected]>
@henschwartz henschwartz force-pushed the upgrade-pvcviewer-go-1.24 branch from b794c32 to 77c656d Compare November 10, 2025 14:09
@henschwartz
Copy link
Author

henschwartz commented Nov 23, 2025

PVCViewer Controller Integration Test:
image
PVCViewer Contoller Multi-Arch Build Test:
image
Run PVCViewer Controller unit tests:
image
PVCViewer Controller Docker Publish:
image

{4625F31E-C85A-44E7-BEB8-0B5228D42CA3} {9C203E58-8DC0-4637-BE03-550E8E7559D1}

@liavweiss
Copy link

Thanks Hen,

I reviewed the code and was able to deploy the component and create a volume. I also verified that there are no changes to go.sum.

One small comment: please add ci: to your PR title so it passes the Semantic PRs / Validate Title check.

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Nov 23, 2025
@henschwartz henschwartz changed the title Upgrade pvcviewer go 1.24 ci(pvc): upgrade Go to 1.24 for pvcviewer-controller Nov 23, 2025
@henschwartz henschwartz marked this pull request as ready for review November 23, 2025 13:36
@liavweiss liavweiss removed their assignment Nov 23, 2025
@liavweiss
Copy link

Hey @henschwartz, following my earlier review, I noticed one more thing that could be improved. It’s not mandatory, but it would make the code cleaner.

RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -mod=mod -o manager main.go

I checked our environment and the module cache is writable, so -mod=mod doesn’t add anything in Go 1.20+.
GO111MODULE=on is also deprecated and has no effect since modules are always enabled now.

We can remove these flags, though it’s not required for the PR approval.

Copy link
Contributor

@andyatmiami andyatmiami left a comment

Choose a reason for hiding this comment

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

Hey @henschwartz - thanks for this contribution 💯

While I have tested the code in my own Kind cluster and feel confident about the changes - I'm hoping we can use this PR (opportunity) to improve the flexibility of the unit test configuration to make it less redundant .

If you can code and verify the simple suggestion I provide below - I will feel good about lgtming the PR quickly afterwards.

uses: actions/setup-go@v5
with:
go-version: "1.22.2"
go-version: "1.24"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
go-version: "1.24"
go-version-file: 'components/pvcviewer-controller/go.mod'

Given we already need to adjust this code block - I think we would be better served to change it more substantially to avoid having to hardcode (and couple) this go-version input with the related go.mod file

You can see this pattern employed in notebooks-v2 code - and I think we should have notebooks-v1 follow suit! Will make any future updates easier - as we only need to modify go.mod and the GH workflow will then automatically pick up the right version.

@andyatmiami
Copy link
Contributor

/ok-to-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci area - related to ci area/controller area - related to controller components area/v1 area - version - kubeflow notebooks v1 ok-to-test size/XS

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

3 participants