code: func GetSecretForPV(restSecretNamespace, restSecretName, volumePluginName string, kubeClient kubernetes.Interface) (map[string]string, error) {
  	secret := make(map[string]string)
  	if kubeClient == nil {
  		return secret, fmt.Errorf("Cannot get kube client")
  	}
  	secrets, err := kubeClient.Core().Secrets(restSecretNamespace).Get(restSecretName, metav1.GetOptions{})
  	if err != nil {
  		return secret, err
  	}
  	if secrets.Type != v1.SecretType(volumePluginName) {
  		return secret, fmt.Errorf("cannot get secret of type %s", volumePluginName)
  	}
  	for name, data := range secrets.Data {
  		secret[name] = string(data)
  	}
  	return secret, nil
  }
docs: // GetSecretForPV locates secret by name and namespace, verifies the secret type, and returns secret map