Add support for list secret parameters to RemovePrefixedParameters

This commit is contained in:
bells17
2020-02-20 01:00:22 +09:00
parent 2045ef16ba
commit 0a1579d0f2
2 changed files with 10 additions and 0 deletions

View File

@@ -368,6 +368,8 @@ func RemovePrefixedParameters(param map[string]string) (map[string]string, error
switch k {
case prefixedSnapshotterSecretNameKey:
case prefixedSnapshotterSecretNamespaceKey:
case prefixedSnapshotterListSecretNameKey:
case prefixedSnapshotterListSecretNamespaceKey:
default:
return map[string]string{}, fmt.Errorf("found unknown parameter key \"%s\" with reserved namespace %s", k, csiParameterPrefix)
}