-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implemented registration of CRDs #33
Conversation
@dmitsh , please correct me if I'm wrong, based on my understand and our older discussion, the reason why we need this change is because we cannot infer the I recently leant about kubectl's api-resources, and I think this might be helpful here. If we run
We can parse the YAML to fetch the group and version (split the api version by What do you think? |
Great suggestion, thanks! Let me give it a try. |
be2b9e7
to
2f8656e
Compare
4b6a6c8
to
176a006
Compare
de9ccae
to
c624dc7
Compare
00994c9
to
e0b71c3
Compare
Signed-off-by: Dmitry Shmulevich <[email protected]>
In the existing setup, each job submission requires us to define the resource's GVR (Group, Version, Resource), template, name format, and the format for pod names. These parameters remain constant.
Currently, if we have multiple "SubmitObj" tasks, we must repeat these parameters for each task.
I suggest we introduce a new task type called "RegisterObj." This task would store all the necessary parameters for a specific CRD in memory. When a job involving that CRD is submitted, the stored parameters would automatically be applied.