kubernetes-reflector
kubernetes-reflector copied to clipboard
Exception on additional annotations in secrets
Hello, looks like reflector cannot handle additional annotations kubernetes.io/service-account.name
which allows to create a secret with tokens, new versions of k8s do not created them by default now. It would be great to reflect them.
2024-10-04 10:15:55.210 +00:00 [ERR] (ES.Kubernetes.Reflector.Core.SecretMirror) Could not reflect openshift-user-workload-monitoring/grafana-sa to grafana/grafana-sa due to exception.
k8s.Autorest.HttpOperationException: Operation returned an invalid status code 'UnprocessableEntity', response body {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Secret \"grafana-sa\" is invalid: metadata.annotations[kubernetes.io/service-account.name]: Required value","reason":"Invalid","details":{"name":"grafana-sa","kind":"Secret","causes":[{"reason":"FieldValueRequired","message":"Required value","field":"metadata.annotations[kubernetes.io/service-account.name]"}]},"code":422}