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

Simplified and updated go.mod #1325

Merged
merged 2 commits into from
Feb 3, 2020
Merged

Conversation

armandgrillet
Copy link
Contributor

@armandgrillet armandgrillet commented Jan 31, 2020

I am updating repositories depending on Kudo and I have faced some issues due to the use of k8s.io/client-go v11.0.0+incompatible. I have thus updated KUDO's package dependencies to be clearer by using recently tagged k8s.io releases instead of SHAs related to outdated versions such as v0.16.2.

After these two commits, using go mod tidy does not change a thing and make successfully runs. I am not sure yet that these changes will fix my issue but they should do no harm to the kudo repository and improve the dependency management.

I have not updated k8s.io/apiextensions-apiserver due to the warning message ../go/pkg/mod/k8s.io/component-base@v0.16.6/metrics/legacyregistry/registry.go:44:9: undefined: prometheus.InstrumentHandler when running go get k8s.io/apiextensions-apiserver@v0.16.6.

@gerred
Copy link
Member

gerred commented Jan 31, 2020

Hi @armandgrillet - thanks for your contribution!

I think this should be OK. We were fighting some diamond dependency issues, so pending builds of the CLI and controller working I think we're OK to merge this.

@gerred
Copy link
Member

gerred commented Jan 31, 2020

@armandgrillet You will still need to depend on the SHA for this at the moment until we make a tagged release for the next version of KUDO, FYI.

@armandgrillet
Copy link
Contributor Author

@gerred Thanks for the information! I can use a SHA for my use case so it's all good 😄 .

@gerred gerred added dependencies Pull requests that update a dependency file size/S labels Jan 31, 2020
k8s.io/apiextensions-apiserver v0.0.0-20190918161926-8f644eb6e783
k8s.io/apimachinery v0.16.6
k8s.io/client-go v0.16.6
k8s.io/code-generator v0.16.6
Copy link
Member

@nfnt nfnt Feb 3, 2020

Choose a reason for hiding this comment

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

@porridge Was code-generator at v0.18.0-alpha on purpose (see #1244) or is it okay to downgrade to v0.16.6? The CI doesn't mind.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, as the mesage on #1244 explained, this is the version which fixes kubernetes/code-generator#87 (which only surfaces in some environments).
Downgrading means you'll re-introduce the issue @nfnt

Copy link
Member

Choose a reason for hiding this comment

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

Or actually @armandgrillet ☝️

Copy link
Member

@nfnt nfnt left a comment

Choose a reason for hiding this comment

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

LGTM!

go.mod Show resolved Hide resolved
@nfnt nfnt merged commit 4420478 into kudobuilder:master Feb 3, 2020
porridge added a commit that referenced this pull request Feb 3, 2020
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
Bumped most k8s.io packages to v0.16.6

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
runyontr pushed a commit that referenced this pull request Mar 11, 2020
Bumped most k8s.io packages to v0.16.6

Signed-off-by: Thomas Runyon <runyontr@gmail.com>
@armandgrillet armandgrillet deleted the D2IQ-62637 branch May 25, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants