quarkus-operator-sdk
quarkus-operator-sdk copied to clipboard
Fine-tuning service account namespace
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.