Skip to content

Commit

Permalink
Fix config key normalization error
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Dec 14, 2022
1 parent 3a03efe commit 9f92c43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/driver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,20 @@ func mergeConfig(driverConfig *common.Config, driverSecrets map[string]string, v
configs := make(map[string]string)
for k, v := range volSecrets {
if len(v) > 0 {
configs[k] = normalizeConfigKey(v)
configs[normalizeConfigKey(k)] = v
}
}

for k, v := range volParams {
if len(v) > 0 {
configs[k] = normalizeConfigKey(v)
configs[normalizeConfigKey(k)] = v
}
}

// driver secrets have higher priority
for k, v := range driverSecrets {
if len(v) > 0 {
configs[k] = normalizeConfigKey(v)
configs[normalizeConfigKey(k)] = v
}
}

Expand Down

0 comments on commit 9f92c43

Please sign in to comment.