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 go version to 1.21 #91

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

thepetk
Copy link
Contributor

@thepetk thepetk commented Jun 20, 2024

Please specify the area for this PR

registry-operator

What does does this PR do / why we need it:

This PR upgrades the go version from 1.19 to 1.21 and the k8s.io/api from 0.26.10 to 0.29.2.

It also includes the necessary refactoring, mostly coming from the necessary bump up of the controller-runtime.

Which issue(s) this PR fixes:

Fixes devfile/api#1559

PR acceptance criteria:

  • Test Coverage
    • Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?
  • Gosec scans

Documentation

  • Does the registry operator documentation need to be updated with your changes?

Testing changes

Running Unit Tests

Running Integration Tests

Special notes to the reviewer:

Signed-off-by: thepetk <thepetk@gmail.com>
Dockerfile Fixed Show resolved Hide resolved
Copy link

openshift-ci bot commented Jun 20, 2024

@thepetk: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v4.12-registry-operator-integration-test 3686ef3 link true /test v4.12-registry-operator-integration-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@Jdubrick Jdubrick left a comment

Choose a reason for hiding this comment

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

It's possible it isn't reading the go version properly in the failed test. We could try logging the go env to see what its looking for

@michael-valdron
Copy link
Member

It's possible it isn't reading the go version properly in the failed test. We could try logging the go env to see what its looking for

Changes here might fix this failed check.

FYI @Jdubrick

@thepetk
Copy link
Contributor Author

thepetk commented Jun 21, 2024

It's possible it isn't reading the go version properly in the failed test. We could try logging the go env to see what its looking for

Changes here might fix this failed check.

FYI @Jdubrick

Yes I was thinking about this process because it's a bit complicated. AFAIK we need to merge first the openshift release PR, then we will get the 4.15 checks and then if they are ok we can merge the current PR right?

@Jdubrick
Copy link
Contributor

It's possible it isn't reading the go version properly in the failed test. We could try logging the go env to see what its looking for

Changes here might fix this failed check.
FYI @Jdubrick

Yes I was thinking about this process because it's a bit complicated. AFAIK we need to merge first the openshift release PR, then we will get the 4.15 checks and then if they are ok we can merge the current PR right?

That sounds like the most likely workflow to me, it doesn't hurt to do the openshift release PR first and see what happens. At the very least we know there is something more on this PR to debug if it doesn't address the issue

@thepetk thepetk requested a review from Jdubrick June 21, 2024 22:18
@thepetk
Copy link
Contributor Author

thepetk commented Jun 21, 2024

@michael-valdron @Jdubrick Now that the openshift/release#53498 is merged I see the statuses are ok

Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: thepetk <thepetk@gmail.com>
@thepetk thepetk requested a review from Jdubrick June 24, 2024 14:31
Copy link
Contributor

@Jdubrick Jdubrick left a comment

Choose a reason for hiding this comment

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

/lgtm

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

Builds and deploys successfully 👍

Copy link

openshift-ci bot commented Jun 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [Jdubrick,michael-valdron,thepetk]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thepetk thepetk merged commit 94bde09 into devfile:main Jun 24, 2024
9 checks passed
thepetk added a commit to thepetk/devfile-registry-operator that referenced this pull request Aug 20, 2024
* Update go version to 1.21

Signed-off-by: thepetk <thepetk@gmail.com>

* Pin image version

Signed-off-by: thepetk <thepetk@gmail.com>

---------

Signed-off-by: thepetk <thepetk@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.

Devfile Registry Operator should be updated to support Go 1.21
3 participants