Upgrade ironic and baremetal-operator components
[icn.git] / deploy / baremetal-operator / base / crd / patches / webhook_in_baremetalhosts.yaml
1 # The following patch enables conversion webhook for CRD
2 # CRD conversion requires k8s 1.13 or later.
3 apiVersion: apiextensions.k8s.io/v1
4 kind: CustomResourceDefinition
5 metadata:
6   name: baremetalhosts.metal3.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