Merge pull request #9722 from rook/mergify/bp/release-1.8/pr-9720

osd: add namespace in vault client (backport #9720)
This commit is contained in:
mergify[bot] authored and GitHub committed 2022-02-10 16:13:58 +00:00
commit e54ae30dd5
1 file changed
+5
+5
View File
@@ -84,6 +84,11 @@ func newVaultClient(clusterdContext *clusterd.Context, namespace string, secretC
return nil, err
}
// Set the namespace if the config has a namespace
if backendPath := GetParam(secretConfig, api.EnvVaultNamespace); backendPath != "" {
client.SetNamespace(secretConfig[api.EnvVaultNamespace])
}
// Configure the authentication method, either Token or Kubernetes.
// Both return a token
token, _, err := utils.Authenticate(client, c)