Merge pull request #252 from bells17/add-feature-listsnapshots-secrets2

Added the feature to use secrets of ListSnapshots
This commit is contained in:
Kubernetes Prow Robot
2020-02-20 18:28:32 -08:00
committed by GitHub
14 changed files with 936 additions and 844 deletions

View File

@@ -573,7 +573,7 @@ func (ctrl *csiSnapshotCommonController) getCreateSnapshotInput(snapshot *crdv1.
contentName := utils.GetSnapshotContentNameForSnapshot(snapshot)
// Resolve snapshotting secret credentials.
snapshotterSecretRef, err := utils.GetSecretReference(class.Parameters, contentName, snapshot)
snapshotterSecretRef, err := utils.GetSecretReference(utils.SnapshotterSecretParams, class.Parameters, contentName, snapshot)
if err != nil {
return nil, nil, "", nil, err
}