code: func (h *KustHash) Hash(m map[string]interface{}) (string, error) {
  	u := unstructured.Unstructured{
  		Object: m,
  	}
  	kind := u.GetKind()
  	switch kind {
  	case "ConfigMap":
  		cm, err := unstructuredToConfigmap(u)
  		if err != nil {
  			return "", err
  		}
  		return ConfigMapHash(cm)
  	case "Secret":
  		sec, err := unstructuredToSecret(u)
  
  		if err != nil {
  			return "", err
  		}
  		return SecretHash(sec)
  	default:
  		return "", fmt.Errorf("type %s is supported for hashing in %v", kind, m)
  	}
  }
docs: // Hash returns a hash of either a ConfigMap or a Secret