Is your feature request related to a problem? Please describe.
Kubernetes supports calling controller webhooks for setting default values and validating custom resources. MR controller should support this feature to improve operator usability.
Describe the solution you'd like
Add support for webhooks for defaulting and validation. The webhook config and code has been generated, but not enabled yet. It requires setting certificates using a k8s certificate manager, which needs to be investigated to determine how that will function in odh operator installs.
Describe alternatives you've considered
The alternative is to try to set default values and do validation on every reconciliation, which is inefficient.
Is your feature request related to a problem? Please describe. Kubernetes supports calling controller webhooks for setting default values and validating custom resources. MR controller should support this feature to improve operator usability.
Describe the solution you'd like Add support for webhooks for defaulting and validation. The webhook config and code has been generated, but not enabled yet. It requires setting certificates using a k8s certificate manager, which needs to be investigated to determine how that will function in odh operator installs.
Describe alternatives you've considered The alternative is to try to set default values and do validation on every reconciliation, which is inefficient.
Additional context See: https://book.kubebuilder.io/cronjob-tutorial/webhook-implementation