code: func (v *DryRunVerifier) HasSupport(gvk schema.GroupVersionKind) error {
  	oapi, err := v.OpenAPIGetter.OpenAPISchema()
  	if err != nil {
  		return fmt.Errorf("failed to download openapi: %v", err)
  	}
  	supports, err := openapi.SupportsDryRun(oapi, gvk)
  	if err != nil {
  		// We assume that we couldn't find the type, then check for namespace:
  		supports, _ = openapi.SupportsDryRun(oapi, schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Namespace"})
  		// If namespace supports dryRun, then we will support dryRun for CRDs only.
  		if supports {
  			supports, err = v.Finder.HasCRD(gvk.GroupKind())
  			if err != nil {
  				return fmt.Errorf("failed to check CRD: %v", err)
  			}
  		}
  	}
  	if !supports {
  		return fmt.Errorf("%v doesn't support dry-run", gvk)
  	}
  	return nil
  }
docs: // HasSupport verifies if the given gvk supports DryRun. An error is
  // returned if it doesn't.