code: func (p *rbdProvisioner) parsePVSecret(namespace, secretName string) (string, error) {
  	if p.client == nil {
  		return "", fmt.Errorf("Cannot get kube client")
  	}
  	secrets, err := p.client.CoreV1().Secrets(namespace).Get(secretName, metav1.GetOptions{})
  	if err != nil {
  		return "", err
  	}
  	// TODO: Should we check secret.Type, like `k8s.io/kubernetes/pkg/volume/util.GetSecretForPV` function?
  	secret := ""
  	for k, v := range secrets.Data {
  		if k == secretKeyName {
  			return string(v), nil
  		}
  		secret = string(v)
  	}
  
  	// If not found, the last secret in the map wins as done before
  	return secret, nil
  }
docs: // parsePVSecret retrives secret value for a given namespace and name.