Skip to content

More package upgrades #109

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

Conversation

dhaiducek
Copy link
Member

@dhaiducek dhaiducek commented May 5, 2023

Through my package upgrade work, I found that the K8s API package was actually blocking upgrade paths. Replacing it let more upgrades through.

Followup to:

go.mod Outdated
@@ -94,5 +94,6 @@ require (
replace (
golang.org/x/crypto => golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064 // CVE-2021-43565
golang.org/x/text => golang.org/x/text v0.3.8 // CVE-2022-32149
k8s.io/client-go => k8s.io/client-go v0.26.1
k8s.io/api => k8s.io/api v0.26.4
Copy link
Member

Choose a reason for hiding this comment

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

Why replace it here, as opposed to just using v0.26.4 in the top require section? My understanding was that we have client-go down here because we need to declare it as v12.0.0+incompatible for some other dependency...

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose it'd work either way, but for some reason go get -u won't work unless this replace is here:

$ go get -u ./...
open-cluster-management.io/governance-policy-propagator imports
        k8s.io/client-go/kubernetes/scheme imports
        k8s.io/api/resource/v1alpha1: cannot find module providing package k8s.io/api/resource/v1alpha1

So I think having the replace here will create less work in the future running the upgrade command. I'll add a note if that makes sense to you.

Copy link
Member Author

Choose a reason for hiding this comment

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

(The v1alpha1 resource API was bumped to v1alpha2 in v0.27.1.)

Copy link
Member

Choose a reason for hiding this comment

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

I guess... if it works, it works 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah--I'm starting to get a handle on Go packages, but it's definitely still largely a black box to me.

Signed-off-by: Dale Haiducek <[email protected]>
@openshift-ci
Copy link

openshift-ci bot commented May 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhaiducek, JustinKuli

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 [JustinKuli,dhaiducek]

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

@dhaiducek
Copy link
Member Author

Re-running CI, but I created an issue for that flaky templates test: https://issues.redhat.com/browse/ACM-5349

@openshift-merge-robot openshift-merge-robot merged commit 8bdf95f into open-cluster-management-io:main May 5, 2023
@dhaiducek dhaiducek deleted the more-upgrades branch September 11, 2023 15:06
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.

3 participants