2020-07-26 22:10:35 +00:00
|
|
|
# The following patch enables conversion webhook for CRD
|
|
|
|
# CRD conversion requires k8s 1.13 or later.
|
|
|
|
apiVersion: apiextensions.k8s.io/v1beta1
|
|
|
|
kind: CustomResourceDefinition
|
|
|
|
metadata:
|
2020-08-02 06:27:46 +00:00
|
|
|
name: seaweeds.seaweed.seaweedfs.com
|
2020-07-26 22:10:35 +00:00
|
|
|
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
|