Should check config existence in reconciler loop rather than in validation webhook.
Is your feature request related to a problem? Please describe. The webhook raised another api call to check if the configmap exists. The cm may change and validating hook will not block requests if cm is deleted later. if cm has been verified in reconciler loop, we should remove these validations. Describe the solution you'd like Should check configmap existence in reconciler loop, set ownerReference in configmap and if customer updated configmap, the reconcile func will be triggered.
Describe alternatives you've considered
Additional context Also kubeclient package can be removed.
preset-tunning invoked https://github.com/kaito-project/kaito/blob/eff7a7017b5b904979bc662e4fde89d01f5f9cf3/pkg/utils/resources/resources.go#L118-L175
@MartinForReal Would you like to provide detailed information about this webhook?
The webhook here sends a get request to check if cm exists https://github.com/kaito-project/kaito/blob/main/api/v1alpha1/tuning_config_validation.go