Add webhook and validation config to EventType
* Add webhook and validation config to EventType
Required for the conversion webhook.
* Move schema to v1beta1 version
@@ -20,6 +20,7 @@ metadata:
knative.dev/crd-install: "true"
spec:
group: eventing.knative.dev
+ preserveUnknownFields: false
names:
kind: EventType
plural: eventtypes
@@ -89,3 +90,13 @@ spec:
- name: v1beta1
served: true
storage: false
+ schema:
+ openAPIV3Schema:
+ type: object
+ properties:
+ spec:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ status:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
