Hi Team
We are using hnc and using HierarchyConfiguration to define the hierarchy level between different namespaces.
We defined secretproviderclasses and tried to propagate by HNC.
root@geo:~# kubectl get secretproviderclasses --all-namespaces
NAMESPACE NAME AGE
sre vault-database 50mWhen we try to execute the following command we are getting an error.
root@geo:~# kubectl hns config set-resource secretproviderclasses --mode Propagate
Could not update the HNC Configuration: admission webhook "hncconfigurations.hnc.x-k8s.io" denied the request: Cannot find the secretproviderclasses in the apiserver with error: Resource "secretproviderclasses" not foundWe checked secretproviderclasses is listed under resources.
root@geo:~# kubectl api-resources | grep secrets
secrets true Secret
secretproviderclasses secrets-store.csi.x-k8s.io true SecretProviderClass
secretproviderclasspodstatuses secrets-store.csi.x-k8s.io true SecretProviderClassPodStatusThe same we tried for secrets and is working fine.
root@geo:~# kubectl hns config describe
Synchronized resources:
* Propagating: secrets (/v1)
* Propagating: rolebindings (rbac.authorization.k8s.io/v1)
* Propagating: roles (rbac.authorization.k8s.io/v1)
Conditions:Can you please let me know why it's not working for secretproviderclasses and anything further need to fix this?
Thanks
Geo PC