code: func getSecretString(secret *v1.Secret, key string) string {
  	data, ok := secret.Data[key]
  	if !ok {
  		return ""
  	}
  
  	return string(data)
  }
docs: // getSecretString gets a string value from a secret.  If there is an error or
  // if the key doesn't exist, an empty string is returned.