We currently post-process the CRD generated by kubebuilder here https://github.com/kubeflow/code-intelligence/blob/7f514162b674b3bcd28bc4600c7b2f22a7703c39/Label_Microservice/go/Makefile#L55 This post-processing removes validation for PipelineRunRef and just treats it as an arbitrary json. This is undesirable because we'd like validation to insure PipelineRunRef's are correct. This was necessary because [PipelineParams](https://github.com/tektoncd/pipeline/blob/master/pkg/apis/pipeline/v1beta1/param_types.go#L106) implement custom marshling and kubebuilder didn't handle this correctly at the time. This should be fixed by https://github.com/kubernetes-sigs/controller-tools/pull/427 which should be in controller-gen 0.3.0 and later. I think I'm currently using v0.2.5. We should try to upgrade and see if that fixes the issue and get rid of our postprocessing.
We currently post-process the CRD generated by kubebuilder here
code-intelligence/Label_Microservice/go/Makefile
Line 55 in 7f51416
This post-processing removes validation for PipelineRunRef and just treats it as an arbitrary json.
This is undesirable because we'd like validation to insure PipelineRunRef's are correct.
This was necessary because PipelineParams implement custom marshling and kubebuilder didn't handle this correctly at the time.
This should be fixed by kubernetes-sigs/controller-tools#427 which should be in controller-gen 0.3.0 and later.
I think I'm currently using v0.2.5. We should try to upgrade and see if that fixes the issue and get rid of our postprocessing.