ClusterSecret icon indicating copy to clipboard operation
ClusterSecret copied to clipboard

Issue applying ClusterSecret manifest using ArgoCD after updating to 0.0.10

Open PurseChicken opened this issue 1 year ago • 2 comments

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.

PurseChicken avatar Apr 17 '24 00:04 PurseChicken

Same here

cedvan avatar May 16 '24 11:05 cedvan

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

cedvan avatar May 16 '24 12:05 cedvan

fixed here https://github.com/zakkg3/ClusterSecret/pull/147

zakkg3 avatar Oct 13 '24 19:10 zakkg3

I have tried different versions but I cannot get it to work, I keep getting:

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

What chart version is it solved in and is there other changes I need to do?

trashhead avatar Mar 17 '25 10:03 trashhead