Skip to content

chore (deps) : Update controller-runtime to v0.18.7 #1712

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rohanKanojia
Copy link
Contributor

Description of Changes

The project is using quite an old version of controller-runtime dependency.

Update sigs.k8s.io/controller-runtime dependency to v0.18.7. This dependency bump might have changed dependency of some other components too.

Related Issue(s)

I was testing some change related to https://issues.redhat.com/browse/CRW-8603 in DevWorkspace operator

Acceptance Criteria

Testing and documentation do not need to be complete in order for this PR to be approved. However, tracking issues must be opened for missing testing/documentation.

New testing and documentation issues can be opened under devfile/api/issues.

You can check the respective criteria below if either of the following is true:

  • There is a separate tracking issue opened and that issue is linked in this PR.
  • Testing/documentation updates are contained within this PR.

If criteria is left unchecked please provide an explanation why.

Tests Performed

I just verified that schemaTest and apiTest are passing locally

How To Test

This is just a version bump, I just verified that schemaTest and apiTest are passing locally

Notes To Reviewer

While trying to use latest version of devfile in DevWorkspace operator, I was bumping into this issue kubernetes/client-go#1245 (comment) (it advises to bump version of controller-runtime in order to update to client go 0.27.0)

@rohanKanojia rohanKanojia force-pushed the pr/bump-controller-runtime branch 2 times, most recently from 0c156fd to cd53b6e Compare May 9, 2025 15:28
Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

@rohanKanojia Update this line to the following:

-go-version: 1.21
+go-version-file: go.mod

@rohanKanojia
Copy link
Contributor Author

@michael-valdron : There is another go.mod file in generator/ directory. Does that need to be updated too?

go 1.21

@rohanKanojia rohanKanojia force-pushed the pr/bump-controller-runtime branch 4 times, most recently from dc06a2c to 8095621 Compare May 12, 2025 09:52
@rohanKanojia rohanKanojia marked this pull request as ready for review May 12, 2025 09:59
@rohanKanojia rohanKanojia requested review from AObuchow, dkwon17 and a team as code owners May 12, 2025 09:59
@@ -1,6 +1,6 @@
module github.com/devfile/api/v2

go 1.21
go 1.22.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can we drop the patch number since AFAIK go just drops that anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I dropped patch version, CI started failing with this error:

diff --git a/go.mod b/go.mod
index adb43d0..eb84ba0 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,8 @@
 module github.com/devfile/api/v2
 
-go 1.22
+go 1.22.0
+
+toolchain go1.22.12
 
 require (
 	github.com/ghodss/yaml v1.0.0
Go mod is not clean. Execute "go mod tidy && go mod vendor" locally and commit changes to fix an issue

When I run go mod tidy && go mod vendor locally, it automatically applies patch version. Shall I revert to patch version?

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird, if it's applying it then I'm okay ignoring the patch version being there. Was just a visual nit anyway and won't affect anything

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird, if it's applying it then I'm okay ignoring the patch version being there. Was just a visual nit anyway and won't affect anything

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, thanks. I'm updating it to previous version.

@rohanKanojia rohanKanojia force-pushed the pr/bump-controller-runtime branch from 8095621 to 347e42d Compare May 12, 2025 13:53
Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@rohanKanojia rohanKanojia force-pushed the pr/bump-controller-runtime branch from 347e42d to 3d433ed Compare May 12, 2025 15:23
@michael-valdron
Copy link
Member

@michael-valdron : There is another go.mod file in generator/ directory. Does that need to be updated too?

go 1.21

@rohanKanojia Yes this will need to be bumped too, I see you've included this in your changes 👍

Copy link
Member

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

/lgtm

@devfile/devfile-services-team does not have access to security/snyk (Devfile) so I think this is okay to merge.

Should get @devfile/che-team signoff before we merge.

Copy link

openshift-ci bot commented May 13, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: michael-valdron, rohanKanojia

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants