When the src/main/kubernetes.yml contains a ClusterRoleBinding referencing a ServiceAccount in the same file and you try to override the namespace via the quarkus.kubernetes.namespace property, the referenced ServiceAccount namespace will not be updated.
Describe the bug
When the src/main/kubernetes.yml contains a ClusterRoleBinding referencing a ServiceAccount in the same file and you try to override the namespace via the quarkus.kubernetes.namespace property, the referenced ServiceAccount namespace will not be updated.
To Reproduce
Use a src/main/kubernetes.yml like:
A maven package with -Dquarkus.kubernetes.namespace=expected
Will generate a kubernetes.yml with:
Rather than updating the subject to the expected namespace - all of the top level resources though will specify the expected namespace.
Configuration
Quarkus version or git rev
1.11.1.Final
https://github.com/quarkusio/quarkus/issues/16763
$upstream:16763$