Open blairdrummond opened 3 years ago
Thanks for the ping Blair. Can you give a short description of what the code does?
@DavidSpek The part that actually should be upstreamed is https://github.com/StatCan/kubeflow-controller/tree/master/pkg/generated, which is generated from the Kubeflow CRDs. It let's us write Go code that interacts with the CRDs for our own custom controllers.
So for example, it watches for created profiles.kubeflow.org
resources so you can create custom resources in each namespaces easily, and that code is just the watcher/listener part of that?
@DavidSpek Yeah, that's correct, we use it to monitor for new profiles and/or notebooks and create some custom resources that are specific to our environment (e.g., image pull secrets, RBAC config, network policies, etc.). It was also used in our custom Jupyter Web App (https://github.com/StatCan/jupyter-apis).
I had to copy the CRDs out of Kubeflow in order to run the code generator against them to generate the clientset, infromers and listers (so that's why there is a pkg/apis folder here with them).
As per chats the other day, we should upstream
this codethis code. Would be good for Kubeflow anyway and would simplify our dependenciesCC @zachomedia @DavidSpek