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:
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user