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

Getting error Unable to build kubernetes objects from release manifest: resource mapping not found for name: "acrsecret" namespace: "clustersecret" from "": no matches for kind "ClusterSecret" in version "clustersecret.io/v1" ensure CRDs are installed first #114

Open
trashhead opened this issue Feb 29, 2024 · 1 comment

Comments

@trashhead
Copy link

I have installed the cluster-secret helm chart version 0.2.1
But when trying to create a clustersecret I get the following error message:
Unable to build kubernetes objects from release manifest: resource mapping not found for name: "acrsecret" namespace: "clustersecret" from "": no matches for kind "ClusterSecret" in version "clustersecret.io/v1" ensure CRDs are installed first

This is my clustersecret:

kind: ClusterSecret
apiVersion: clustersecret.io/v1
metadata:
  namespace: clustersecret
  name: acrsecret
avoidNamespaces:
  - default
data:
  .dockerconfigjson: eyJhdXRocyI6eyJib2xpZG.......
type: kubernetes.io/dockerconfigjson

This is the log from the clustersecret pod:

[2024-02-29 11:34:46,533] kopf._core.reactor.o [WARNING ] Not enough permissions to watch for resources: changes (creation/deletion/updates) will not be noticed; the resources are only refreshed on operator restarts.
[2024-02-29 11:34:46,640] kopf.objects         [INFO    ] [ingress] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,641] kopf.objects         [INFO    ] [ingress] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,643] kopf.objects         [INFO    ] [local] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,643] kopf.objects         [INFO    ] [local] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,645] kopf.objects         [INFO    ] [kube-system] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,645] kopf.objects         [INFO    ] [kube-system] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,646] kopf.objects         [INFO    ] [kube-public] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,646] kopf.objects         [INFO    ] [kube-public] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,648] kopf.objects         [INFO    ] [kube-node-lease] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,648] kopf.objects         [INFO    ] [kube-node-lease] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,649] kopf.objects         [INFO    ] [default] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,649] kopf.objects         [INFO    ] [default] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,650] kopf.objects         [INFO    ] [cattle-impersonation-system] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,650] kopf.objects         [INFO    ] [cattle-impersonation-system] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,652] kopf.objects         [INFO    ] [cattle-system] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,652] kopf.objects         [INFO    ] [cattle-system] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,653] kopf.objects         [INFO    ] [cattle-fleet-system] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,653] kopf.objects         [INFO    ] [cattle-fleet-system] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,655] kopf.objects         [INFO    ] [fleet-mc-helm-example] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,655] kopf.objects         [INFO    ] [fleet-mc-helm-example] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,656] kopf.objects         [INFO    ] [blastsafe] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,656] kopf.objects         [INFO    ] [blastsafe] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,658] kopf.objects         [INFO    ] [mines-position-hub] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,658] kopf.objects         [INFO    ] [mines-position-hub] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,659] kopf.objects         [INFO    ] [fleet-helm-example] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,659] kopf.objects         [INFO    ] [fleet-helm-example] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,661] kopf.objects         [INFO    ] [jawcrusher] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,661] kopf.objects         [INFO    ] [jawcrusher] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,662] kopf.objects         [INFO    ] [clustersecret] Handler 'namespace_watcher' succeeded.
[2024-02-29 11:34:46,662] kopf.objects         [INFO    ] [clustersecret] Creation is processed: 1 succeeded; 0 failed.
[2024-02-29 11:34:46,683] kopf.objects         [WARNING ] [local] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,687] kopf.objects         [WARNING ] [ingress] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,692] kopf.objects         [WARNING ] [mines-position-hub] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,694] kopf.objects         [WARNING ] [jawcrusher] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,710] kopf.objects         [WARNING ] [cattle-impersonation-system] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,710] kopf.objects         [WARNING ] [default] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,712] kopf.objects         [WARNING ] [kube-system] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,713] kopf.objects         [WARNING ] [kube-public] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,837] kopf.objects         [WARNING ] [cattle-fleet-system] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:46,843] kopf.objects         [WARNING ] [cattle-system] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:47,006] kopf.objects         [WARNING ] [fleet-mc-helm-example] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:47,030] kopf.objects         [WARNING ] [blastsafe] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:47,065] kopf.objects         [WARNING ] [clustersecret] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:47,125] kopf.objects         [WARNING ] [kube-node-lease] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)
[2024-02-29 11:34:47,189] kopf.objects         [WARNING ] [fleet-helm-example] Patching failed with inconsistencies: (('remove', ('status', 'namespace_watcher'), {'syncedns': []}, None),)

Any clues on why I'm getting this?

@trashhead
Copy link
Author

Removed the namespace and installed again and it started working...

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

1 participant