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 kubernetes-dependency-watches to v0.10.0 #158

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

mprahl
Copy link
Contributor

@mprahl mprahl commented Sep 20, 2024

This is required for using client-go v0.31+ and controller-runtime v0.19+.

go.mod Outdated

// This can be removed when upgrading to v0.32.0. This replace is to include this fix:
// https://github.com/kubernetes/client-go/commit/2176e80333ddd9966b37758f8417bf72ceb61d5f
replace k8s.io/client-go => k8s.io/client-go v0.0.0-20240815135022-d63a65fbe7d4
Copy link
Contributor

@dhaiducek dhaiducek Sep 20, 2024

Choose a reason for hiding this comment

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

Rather than replace, can you just get the commit and see what happens?

go get k8s.io/client-go@d63a65fbe7d4

Copy link
Contributor

@dhaiducek dhaiducek Sep 20, 2024

Choose a reason for hiding this comment

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

I updated the SHA--not sure why the SHA is different in the GitHub link and the Go pseudo-version. I guess something about the K8s release process?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dhaiducek it didn't work on kubernetes-dependency-watches because the master branch for client-go doesn't share a parent commit with a tagged version so it just comes up as a 0.0.0 version and that messes up other dependencies that need client-go.

I think it'll be the same here. We actually don't need the replace here but could just put the replace on the propagator, but I thought it'd be clearer if it was done everywhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I see. That mirroring thing Kubernetes has going on makes things odd.

Copy link
Contributor

Choose a reason for hiding this comment

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

I've come to discover that replaces are somewhat annoying because they're more difficult to maintain and break go install. So with this, there won't be a way to go install the template-resolver outside of the cloning the repo. Good thing we have the policy-cli on its way. 🙂

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, let me remove that replace then. I'll just replace it in the Propagator.

dhaiducek
dhaiducek previously approved these changes Sep 20, 2024
This is required for using client-go v0.31+ and controller-runtime
v0.19+.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
Copy link

sonarcloud bot commented Sep 20, 2024

@openshift-ci openshift-ci bot added the lgtm label Sep 20, 2024
Copy link

openshift-ci bot commented Sep 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@openshift-merge-bot openshift-merge-bot bot merged commit 1b6ed6f into stolostron:main Sep 20, 2024
5 checks passed
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.

2 participants