code: func hookHasDeletePolicy(h *release.Hook, policy string) bool {
  	if dp, ok := deletePolices[policy]; ok {
  		for _, v := range h.DeletePolicies {
  			if dp == v {
  				return true
  			}
  		}
  	}
  	return false
  }
docs: // hookHasDeletePolicy determines whether the defined hook deletion policy matches the hook deletion polices
  // supported by helm. If so, mark the hook as one should be deleted.