Skip to content

Commit

Permalink
Fix for inline mutations in custom resources (bank-vaults#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
dervoeti authored Feb 25, 2021
1 parent fb754c8 commit 2b3a756
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/vault-secrets-webhook/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func traverseObject(o interface{}, vaultClient *vault.Client, vaultConfig VaultC
}
dataFromVault = strings.Replace(dataFromVault, vaultSecretReference[0], mapData["data"], -1)
}
e.Set(dataFromVault)
}
case map[string]interface{}, []interface{}:
err := traverseObject(e.Get(), vaultClient, vaultConfig, logger)
Expand Down

0 comments on commit 2b3a756

Please sign in to comment.