title: Create kubernetes resources with helm only if custom resource definition exists
body: <p>I have a helm chart that deploys a number of Kubernetes resources. One of them is a resource that is of a Custom Resource Definition (CRD) type (<code>ServiceMonitor</code> used by <code>prometheus-operator</code>). </p>
  
  <p>I am looking for a way, how to "tell" helm that I'd want to create this resource only if such a CRD is defined in the cluster OR to ignore errors <em>only</em> caused by the fact that such a CRD is missing.</p>
  
  <p>Is that possible and how can I achieve that?</p>