API updates for Cinder Volumes to support for user specified Secrets in the future

This commit is contained in:
Davanum Srinivas
2018-05-14 17:09:05 -04:00
parent 0ecfd343b3
commit 5fa8a2412d
15 changed files with 145 additions and 35 deletions

View File

@@ -58,6 +58,10 @@ func VisitPodSecretNames(pod *api.Pod, visitor Visitor) bool {
if source.CephFS.SecretRef != nil && !visitor(source.CephFS.SecretRef.Name) {
return false
}
case source.Cinder != nil:
if source.Cinder.SecretRef != nil && !visitor(source.Cinder.SecretRef.Name) {
return false
}
case source.FlexVolume != nil:
if source.FlexVolume.SecretRef != nil && !visitor(source.FlexVolume.SecretRef.Name) {
return false