mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
util: use transformed Vault Tokens for initialization
After translating options from the ConfigMap into the common Vault parameters, the generated configuration is not used. Instead, the untranslated version of the configuration is passed on to the vaultConnection initialization function, which then can detects missing options. By passing the right configuration to the initializatino function, things work as intended. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
d0f054bb6c
commit
96fcc58095
@ -199,7 +199,7 @@ func initVaultTokensKMS(args KMSInitializerArgs) (EncryptionKMS, error) {
|
||||
}
|
||||
|
||||
kms := &VaultTokensKMS{}
|
||||
err = kms.initConnection(args.Config)
|
||||
err = kms.initConnection(config)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to initialize Vault connection: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user