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

Update controller-runtime to v0.15 #409

Merged
merged 26 commits into from
Nov 14, 2024

Conversation

ranakan19
Copy link
Contributor

@ranakan19 ranakan19 commented Mar 18, 2024

Description

DO-NOT Merge
(All the PRs related to version updates need to be merged at once, but these PR are for early feedback so that there are not a lot of changes to review at once)

changes wrt - https://issues.redhat.com/browse/SANDBOX-525

Updates:

  • Kubernetes dependencies to v0.27
  • Controller-gen to v0.12
  • Controller runtime to v0.15

Checks

  1. Did you run make generate target? yes

  2. Did make generate change anything in other projects (host-operator, member-operator)? yes

  3. In case of new CRD, did you the following? n/a

  4. In case other projects are changed, please provides PR links.
    CRD yaml make generate updates when upgrading controller-gen in api host-operator#994
    CRD yaml make generate updates when upgrading controller-gen in api member-operator#546

Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

Looks good, I'm just not sure about the plans of upgrading to 4.15 (if now or later)

go.mod Outdated
Comment on lines 7 to 11
// using latest commit from 'github.com/openshift/api branch release-4.14'
github.com/openshift/api v0.0.0-20231117205818-971e4ba78c9a
k8s.io/api v0.27.2
k8s.io/apimachinery v0.27.2
k8s.io/code-generator v0.27.2
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought that we wanted to support OpenShift 4.15 right away, or is the upgrade to OpenShift 4.15 supposed to be done in the following PR(s)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

correct, upgrade to 4.15 would be in the following ones so it is easy to update and review

@ranakan19 ranakan19 changed the title Update K8s dependencies to v0.27 Update controller-runtime to v0.15 Mar 20, 2024
Copy link

sonarcloud bot commented Mar 25, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Nice 👍

Thanks!

@@ -6,8 +6,8 @@ image:https://codecov.io/gh/codeready-toolchain/api/branch/master/graph/badge.sv
== Building
Requires:

* Go version 1.18.x (1.18.8 or higher) - download for your development environment https://golang.org/dl/[here].
* Operator SDK v1.23.0 - download for your development environment https://v1-23-x.sdk.operatorframework.io/docs/installation/#install-from-github-release[here]
* Go version 1.20.x (1.20.11 or higher) - download for your development environment https://golang.org/dl/[here].
Copy link
Contributor Author

Choose a reason for hiding this comment

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

readme was outdated - this just fixes that. Not related to the documentation of the changes introduced in this PR

k8s.io/apimachinery v0.27.2
k8s.io/code-generator v0.27.2
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a Thought , Do we need to discuss resolve the update to kube-openapi version as i see PR from francesco https://github.com/codeready-toolchain/api/pull/421/files updating it to the latest , and here it updates to some previous versions ? wont that be conflicting or may be just duplication of work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @fbm3307 - I checked the version for the kube-openapi for controller-runtime v0.15 is https://github.com/kubernetes-sigs/controller-runtime/blob/release-0.15/go.mod#L71 the same as here.
I've responded on the other PR to know what is the reason to update to the latest version. I'd like to keep the dependencies in sync unless there is a need otherwise.

Copy link

sonarcloud bot commented Nov 14, 2024

@ranakan19 ranakan19 merged commit 44333bf into codeready-toolchain:master Nov 14, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants