Describe the bug
defaultAuthMethod is looking for the serviceaccount in the namespace where vaultstaticsecret is deployed. I guess since vaultAuth is reused for defaultAuthMethod, it ends up looking for serviceaccount in the namespace of vaultstaticsecret instead of operator namespace.
To Reproduce
Steps to reproduce the behavior:
Configure defaultAuthMethod while deploying VSO in a namespace "vso-namespace", this will result in VaultAuth named "default" to be created in vso-namespace.
We also create a serviceaccount named "vso-sa" in same namespace i.e. "vso-namespace"
Describe the bug defaultAuthMethod is looking for the serviceaccount in the namespace where vaultstaticsecret is deployed. I guess since vaultAuth is reused for defaultAuthMethod, it ends up looking for serviceaccount in the namespace of vaultstaticsecret instead of operator namespace.
To Reproduce Steps to reproduce the behavior:
hashicorp vault configurations
vault secrets enable -path=kvv2 kv-v2 vault kv put kvv2/fed-grafana/admin-cred user="admin" password="admin123"
vault auth enable jwt
vault write auth/jwt/config \ jwt_validation_pubkeys="-----BEGIN PUBLIC KEY-----