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

unable to install on 1.28.* #2

Open
zozo6015 opened this issue Apr 4, 2024 · 3 comments
Open

unable to install on 1.28.* #2

zozo6015 opened this issue Apr 4, 2024 · 3 comments

Comments

@zozo6015
Copy link

zozo6015 commented Apr 4, 2024

When I try to install this on a 1.28.* cluster I get the following error message:

 kubectl apply -k ./
# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
serviceaccount/secret-sync-operator created
clusterrole.rbac.authorization.k8s.io/secret-sync-operator created
clusterrolebinding.rbac.authorization.k8s.io/secret-sync-operator created
deployment.apps/secret-sync-operator created
error: resource mapping not found for name: "synchronizedsecrets.app.gamesight.io" namespace: "" from "./": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
ensure CRDs are installed first

I have tried changing the synchronizedsecrets.app.gamesight.io api to v1 in order to match the clusters api version then I get the following error:

kubectl apply -k ./
# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
serviceaccount/secret-sync-operator unchanged
clusterrole.rbac.authorization.k8s.io/secret-sync-operator configured
clusterrolebinding.rbac.authorization.k8s.io/secret-sync-operator unchanged
deployment.apps/secret-sync-operator configured
Error from server (BadRequest): error when creating "./": CustomResourceDefinition in version "v1" cannot be handled as a CustomResourceDefinition: strict decoding error: unknown field "spec.subresources", unknown field "spec.validation", unknown field "spec.version"

This project is interesting and very usefull for multisite deployments therefore I would love to see this updated so that it works with newer versions of kubernetes.

@rsyvarth
Copy link
Member

rsyvarth commented Apr 4, 2024

Hey @zozo6015 - thanks for the report! We are still using this operator so we do plan on continuing to maintain it, that being said we aren't (yet) on 1.28 so I cannot vouch for compatibility.

I just pushed a patch that we have been using to address the CRD compatibility. Let me know if that works for you!

@zozo6015
Copy link
Author

zozo6015 commented Apr 4, 2024

I did pulled the latest changes and run the installation with no success:

─ kubectl apply -k ./             
# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
serviceaccount/secret-sync-operator created
clusterrole.rbac.authorization.k8s.io/secret-sync-operator configured
clusterrolebinding.rbac.authorization.k8s.io/secret-sync-operator configured
deployment.apps/secret-sync-operator created
Error from server (BadRequest): error when creating "./": CustomResourceDefinition in version "v1" cannot be handled as a CustomResourceDefinition: strict decoding error: unknown field "spec.subresources"

@rsyvarth
Copy link
Member

rsyvarth commented Apr 5, 2024

Sorry - got the config off trying to remove some of the customizations we use in our envs. Should be working now

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