quarkus-operator-sdk icon indicating copy to clipboard operation
quarkus-operator-sdk copied to clipboard

Fine-tuning service account namespace

Open MikeEdgar opened this issue 6 months ago • 8 comments

We can currently give the service account's namespace using quarkus.kubernetes.namespace, but this also results in the namespace being added everywhere to the generated Kubernetes resources. It would be useful to be able to also use quarkus.kubernetes.rbac.service-accounts.my-service-account.namespace=my_namespace as the primary lookup, then fall-back to quarkus.kubernetes.namespace.

Aside - while looking at AddRoleBindingsDecorator, I noticed that the service account name is based on the deployment name. If the deployment has its own serviceAccountName already, it is ignored for the role binding, but still used in a generated CSV for the deployment.

MikeEdgar avatar Aug 22 '24 17:08 MikeEdgar