github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/config/crd/patches/webhook_in_clusterassets.yaml (about)

     1  # The following patch enables conversion webhook for CRD
     2  # CRD conversion requires k8s 1.13 or later.
     3  apiVersion: apiextensions.k8s.io/v1beta1
     4  kind: CustomResourceDefinition
     5  metadata:
     6    name: clusterassets.assetstore.kyma-project.io
     7  spec:
     8    conversion:
     9      strategy: Webhook
    10      webhookClientConfig:
    11        # this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
    12        # but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
    13        caBundle: Cg==
    14        service:
    15          namespace: system
    16          name: webhook-service
    17          path: /convert