flink-on-k8s-operator
flink-on-k8s-operator copied to clipboard
Introduce CRD v1: fix CRD generation bugs and enable field validation
This PR introduces CRD v1. CRD v1 is supported in Kubernetes version 1.16+.
-
Note There is a known issue(#382) for introducing CRD v1. For now, applied a workaround marking the CRD annotation
api-approved.kubernetes.ioasunapproved. Unapproved domain use is still a remaning issue. -
Descrition
- Fix CRD generation bugs (fix #311, fix #266, fix #330, fix #406, )
- Reject unknown fields (fix #85)
- Introduce CRD validation (via kubebuilder markers) Now can use kubebuilder validation markers that can partially replace the functions of default/validating webhooks and their test codes. https://book.kubebuilder.io/reference/markers/crd-validation.html
Thanks for the fix!
@functicons @hongyegong Is there anything blocking merging this PR? Looks like the tests are blocked on someone approving the tests to run?