airshipctl/manifests/function/cabpk/v0.3.7/crd/patches/webhook_in_kubeadmconfigtemplates.yaml
Sreejith Punnapuzha cf1f55f3ca upgrade cabpk to v0.3.7
* upgrade cabpk to v0.3.7

Change-Id: Ib6343048eccc95e4b941cf83103cc763b866c687
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-14 19:58:12 +00:00

20 lines
713 B
YAML

# The following patch enables conversion webhook for CRD
# CRD conversion requires k8s 1.13 or later.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io
spec:
conversion:
strategy: Webhook
webhook:
conversionReviewVersions: ["v1", "v1beta1"]
clientConfig:
# 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