Skip to content

Commit

Permalink
Merge pull request #32 from cwdsuzhou/tensile-kube
Browse files Browse the repository at this point in the history
Bugfix: fix using secret of cinder, rbd bug
  • Loading branch information
cwdsuzhou authored Aug 20, 2020
2 parents 6da539d + fa75310 commit b0e6cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/provider/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ func getSecrets(pod *corev1.Pod) []string {

case v.CephFS != nil:
klog.Infof("pod %s depends on secret %s", pod.Name, v.CephFS.SecretRef.Name)
secretNames = append(secretNames, v.Secret.SecretName)
secretNames = append(secretNames, v.CephFS.SecretRef.Name)
case v.Cinder != nil:
klog.Infof("pod %s depends on secret %s", pod.Name, v.Cinder.SecretRef.Name)
secretNames = append(secretNames, v.Secret.SecretName)
secretNames = append(secretNames, v.Cinder.SecretRef.Name)
case v.RBD != nil:
klog.Infof("pod %s depends on secret %s", pod.Name, v.RBD.SecretRef.Name)
secretNames = append(secretNames, v.Secret.SecretName)
secretNames = append(secretNames, v.RBD.SecretRef.Name)
}
}
secretFromEnv := map[string]string{}
Expand Down

0 comments on commit b0e6cea

Please sign in to comment.