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

Exception on additional annotations in secrets #466

Open
siwyroot opened this issue Oct 4, 2024 · 0 comments
Open

Exception on additional annotations in secrets #466

siwyroot opened this issue Oct 4, 2024 · 0 comments

Comments

@siwyroot
Copy link

siwyroot commented Oct 4, 2024

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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant