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

Issue applying ClusterSecret manifest using ArgoCD after updating to 0.0.10 #126

Closed
PurseChicken opened this issue Apr 17, 2024 · 3 comments

Comments

@PurseChicken
Copy link

PurseChicken commented Apr 17, 2024

I believe the issue has to do with the CRD scope change from being Namespaced to Cluster... but I could be totally wrong.

I updated from 0.0.9 using helm chart 0.2.1 to 0.0.10 using helm chart 0.4.1. I could not sync the CRD, since the scope field is immutable. So I deleted my clustersecret resources, and deleted the old CRD. Then I could successfully sync and everything appeared to be good.

I tried syncing one of my cluster-secret resources, and it would fail in Argo. I kept getting the error:

one or more objects failed to apply, reason: the server could not find the requested resource (post clustersecrets.clustersecret.io)

I could manually kubectl apply -f the exact same yaml file and that would work, however syncing from argo seemed to indicate it could not validate the CRD.

I rolled back to 0.0.9 and rolled back the CRD and everything started working again as expected.

@cedvan
Copy link

cedvan commented May 16, 2024

Same here

@cedvan
Copy link

cedvan commented May 16, 2024

Hum, for me, problem exist because CRD scope changed from Namespaced to Cluster.

this patch with kustomize solve problem with version 0.4

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: clustersecrets.clustersecret.io
spec:
  scope: Namespaced

@zakkg3
Copy link
Owner

zakkg3 commented Oct 13, 2024

fixed here #147

@zakkg3 zakkg3 closed this as completed Oct 13, 2024
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

3 participants