Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

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

Open
jlewi opened this issue Jul 16, 2020 · 1 comment
Open

Comments

@jlewi
Copy link
Contributor

jlewi commented Jul 16, 2020

We currently post-process the CRD generated by kubebuilder here

python ./hack/prune_crd.py ./config/crd/bases/automl.cloudai.kubeflow.org_modelsyncs.yaml

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.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the labels:

Label Probability
kind/feature 0.63

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant