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

go.mod: add replace directive for the k8s.io packages #1099

Merged

Conversation

raghavendra-talur
Copy link
Member

Some of the modules we depend on are still using k8s.io/kubernetes module which is discouraged by the kubernetes maintainers.

It also leads to errors when you run a go get command to add or update a go module. Adding these replace directives will let the go tools know how to workaround the problem. This commit doesn't change any of the dependencies.

Some of the modules we depend on are still using k8s.io/kubernetes
module which is discouraged by the kubernetes maintainers.

It also leads to errors when you run a go get command to add or update a
go module. Adding these replace directives will let the go tools know
how to workaround the problem. This commit doesn't change any of the
dependencies.

Signed-off-by: Raghavendra Talur <[email protected]>
@raghavendra-talur
Copy link
Member Author

Fixes #958

@nirs
Copy link
Member

nirs commented Oct 17, 2023

Based on argoproj/argo-cd#4055 (comment) the issue is in gitops-engine - can we fix it there instead?

@raghavendra-talur
Copy link
Member Author

Based on argoproj/argo-cd#4055 (comment) the issue is in gitops-engine - can we fix it there instead?

I tried to do that but it doesn't look easy. They are using some of the modules that aren't available in the k8s.io org anywhere except k8s.io/kubernetes. And they have concerns about performance if they have to give up using these modules.

You can see some of the previous attempts by others at
argoproj/gitops-engine#205
argoproj/gitops-engine#206

I would also prefer a cleaner fix by fixing it at the source, but it has been open for too long and not being able to run a simple go get to add or update dependencies in Ramen is getting to me now.

Copy link
Member

@ShyamsundarR ShyamsundarR left a comment

Choose a reason for hiding this comment

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

Having to deal with go get failures fixing this is useful. @nirs the current alternative seems to be to do this, although being fixed at the source would have been better.

@raghavendra-talur raghavendra-talur merged commit a3dabd2 into RamenDR:main Oct 18, 2023
13 checks passed
@raghavendra-talur raghavendra-talur deleted the rtalur-fix-argo-cd-import branch October 18, 2023 20:08
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.

3 participants