add webhook for jobflow and jobtemplate
What is the problem you're trying to solve
Currently there is no check when creating jobflow and jobtemplate, this may cause the controller or scheduler to panic.
Describe the solution you'd like
add some check in admission for jobflow and jobtemplate.
Additional context
No response
/assign
Hi, please descriebe what checks are missing and why volcano will panic.
For jobflow:
- The jobtemplate in jobflow cannot be repeated
- The jobtemplate in the job cannot form a ring, which means that the jobtemplate needs to be a DAG.
For jobtemplate:
- It should be the same as vcjob's vaildate
Jobtemlpate should reuse job's validate. Do you have any good suggestions?
Hello 👋 Looks like there was no activity on this issue for last 180 days. Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗 If there will be no activity for 90 days, this issue will be closed (we can always reopen an issue if we need!).
can this https://github.com/volcano-sh/volcano/pull/4122 help?