code: func parseSecret(namespace, secretName string, kubeClient clientset.Interface) (string, error) {
  	secretMap, err := volutil.GetSecretForPV(namespace, secretName, glusterfsPluginName, kubeClient)
  	if err != nil {
  		klog.Errorf("failed to get secret: %s/%s: %v", namespace, secretName, err)
  		return "", fmt.Errorf("failed to get secret %s/%s: %v", namespace, secretName, err)
  	}
  	if len(secretMap) == 0 {
  		return "", fmt.Errorf("empty secret map")
  	}
  	secret := ""
  	for k, v := range secretMap {
  		if k == secretKeyName {
  			return v, nil
  		}
  		secret = v
  	}
  
  	// If not found, the last secret in the map wins as done before
  	return secret, nil
  }
docs: // parseSecret finds a given Secret instance and reads user password from it.