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

[email protected] incompatible with k8s 1.29.4 #576

Closed
joselitofilho opened this issue May 13, 2024 · 1 comment
Closed

[email protected] incompatible with k8s 1.29.4 #576

joselitofilho opened this issue May 13, 2024 · 1 comment

Comments

@joselitofilho
Copy link

joselitofilho commented May 13, 2024

I have a GoLang application that uses k8s v1.24.2, argo-cd/v2 v2.9.3 and gitops-engine v0.7.1-0.20230906152414-b0fffe419a0f (indirect). I am updating it to k8s v1.29.4 and I encountered the following error:

# github.com/argoproj/gitops-engine/pkg/utils/kube
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:249:39: too many arguments in call to apply.NewApplyFlags
        have ("k8s.io/kubectl/pkg/cmd/util".Factory, genericiooptions.IOStreams)
        want (genericiooptions.IOStreams)
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:252:22: cannot use sets.NewString() (value of type "k8s.io/apimachinery/pkg/util/sets".String) as "k8s.io/apimachinery/pkg/util/sets".Set["k8s.io/apimachinery/pkg/types".UID] value in struct literal
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:253:22: cannot use sets.NewString() (value of type "k8s.io/apimachinery/pkg/util/sets".String) as "k8s.io/apimachinery/pkg/util/sets".Set[string] value in struct literal
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:269:4: o.OpenAPISchema undefined (type *apply.ApplyOptions has no field or method OpenAPISchema)
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:270:38: cannot use validate (variable of type bool) as string value in argument to k.fact.Validator
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:278:4: o.DryRunVerifier undefined (type *apply.ApplyOptions has no field or method DryRunVerifier)
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:278:30: undefined: resource.NewDryRunVerifier
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:326:4: o.DryRunVerifier undefined (type *create.CreateOptions has no field or method DryRunVerifier)
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:326:30: undefined: resource.NewDryRunVerifier
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:375:30: undefined: resource.NewDryRunVerifier
../../../../go/pkg/mod/github.com/argoproj/[email protected]/pkg/utils/kube/resource_ops.go:375:30: too many errors

Versions after updating:

  • k8s v1.29.4
  • argo-cd/v2 v2.10.7
  • gitops-engine v0.7.1-0.20240122213038-792124280fcc (indirect)

I believe this issue is connected to the issue argoproj/argo-cd#17935 in the argo-cd project.

I hope I didn't overlook anything obvious.

Thanks, Joselito.

@sivchari
Copy link
Contributor

@joselitofilho
I opened the new pull-request to update Kubernetes library version to 0.30.1.
You'll be able to resolve above error after the it is merged.
Thanks.

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

No branches or pull requests

2 participants