sigs.k8s.io/cluster-api-provider-azure@v1.14.3/config/crd/patches/webhook_in_azureclustertemplates.yaml (about)

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