Adding the custom resource definition for the ric.
[ric-plt/ric-dep.git] / depRicKubernetesOperator / config / crd / patches / webhook_in_ricplatforms.yaml
diff --git a/depRicKubernetesOperator/config/crd/patches/webhook_in_ricplatforms.yaml b/depRicKubernetesOperator/config/crd/patches/webhook_in_ricplatforms.yaml
new file mode 100644 (file)
index 0000000..5c53c02
--- /dev/null
@@ -0,0 +1,16 @@
+# The following patch enables a conversion webhook for the CRD
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+  name: ricplatforms.ricdeploy.ricplt.com
+spec:
+  conversion:
+    strategy: Webhook
+    webhook:
+      clientConfig:
+        service:
+          namespace: system
+          name: webhook-service
+          path: /convert
+      conversionReviewVersions:
+      - v1