Open
Description
Changing the gmsacredentialspecs.windows.k8s.io
CRD scope from Cluster
to Namespaced
at:
results in the admission webhook failing with:
time="2021-11-24T19:57:14Z" level=info msg="refusing to admit pod &Pod{...} with code 500: unable to retrieve the contents of cred spec ns1-gmsa: the server could not find the requested resource"
whenever a container is created using any gMSA credential spec, from any namespace.
Reverting the CRD scope to Cluster
, everything is fine.