vino/config/crd/patches/webhook_in_ippools.yaml
Matt McEuen 40d4804ad1 Add IPPool CR
This converts the ipammer to use an IPPool CR-based to persist IPAM state.

This followon patchset adds the actual persistence to the API Server:
https://review.opendev.org/c/airship/vino/+/774184

Change-Id: Ib81a0bc6be1c74d85e2adc2dcadd09590a65b292
2021-02-22 13:24:40 -06:00

18 lines
626 B
YAML

# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ippools.airship.airshipit.org
spec:
conversion:
strategy: Webhook
webhookClientConfig:
# this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank,
# but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager)
caBundle: Cg==
service:
namespace: system
name: webhook-service
path: /convert