code: func getSecretString(secret *v1.Secret, key string) string {
  	if secret.Data == nil {
  		return ""
  	}
  	if val, ok := secret.Data[key]; ok {
  		return string(val)
  	}
  	return ""
  }
docs: // getSecretString returns the string value for the given key in the specified Secret