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
dependency on kustomize causing compilation issues #19
Comments
i wrote up some notes here: |
tl;dr anyone depending on |
Thanks monopole. go mod graph | grep kube-openapi |
The reason for kube-openapi@v0.0.0-20200805222855-6aeccd4b50c6 not working even though it was older than the recommended v0.0.0-20210323165736-1a6458611d18 was because the go-openapi/spec package also had a version dependency. This commit changed the properties field type in the schema struct which caused the same error to pop up. I used v0.19.6 and the compilation issue went away |
IMO, this can be closed. |
yes, please do. Thanks.
…On Tue, Jun 1, 2021 at 12:38 PM Jeff Regan ***@***.***> wrote:
IMO, this can be closed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQAFUPL5PDATNCWR2UALQN3TQUZKHANCNFSM43N5WWSA>
.
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
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/test-infra repository. |
Relevant section of the go.mod file is as below -:
k8s.io/api v0.19.4
k8s.io/apiextensions-apiserver v0.19.4 // indirect
k8s.io/apimachinery v0.19.4
k8s.io/cli-runtime v0.19.4
k8s.io/client-go v0.19.4
On compiling some kubectl plugin code, i get this error -:
go vet ./...
sigs.k8s.io/kustomize/pkg/transformers/config
vendor/sigs.k8s.io/kustomize/pkg/transformers/config/factorycrd.go:71:47: cannot use api.Schema.SchemaProps.Properties (type spec.SchemaProperties) as type myProperties in argument to looksLikeAk8sType
make: *** [Makefile:95: vet] Error 2
Graph dependency shows -:
go mod graph | grep kustomize
k8s.io/cli-runtime@v0.19.4 sigs.k8s.io/kustomize@v2.0.3+incompatible
Similar issue also noted by helm package users
kubernetes-sigs/kustomize#3262
Looks like the latest version v0.21.0 uses a fixed version of kustomize in the go.mod file.
Could we get a patch release for v0.19.x or v0.20.x ?
Its going to be a while till we get to use kubernetes1.21 and it seems that anything below cli-runtime@v0.21.0 is unusable at this time ? If not, please let me know what i could do as a work around ?
The kustomize version in the mod file is quite old and it looks like the kustomize package structure has changed along the way.
The text was updated successfully, but these errors were encountered: