code-intelligence icon indicating copy to clipboard operation
code-intelligence copied to clipboard

[Model Sync Controller] Remove post processing of the kubebuilder CRD

Open jlewi opened this issue 5 years ago • 1 comments

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 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.

jlewi avatar Jul 16 '20 17:07 jlewi

Issue-Label Bot is automatically applying the labels:

Label Probability
kind/feature 0.63

Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jul 16 '20 17:07 issue-label-bot[bot]