func (c *ControllerV1) updateWebhook(secret *corev1.Secret, webhook *admiv1.MutatingWebhookConfiguration) error {
	webhook = webhook.DeepCopy()
	webhook.Webhooks = c.newWebhooks(secret)
	_, err := c.clientSet.AdmissionregistrationV1().MutatingWebhookConfigurations().Update(context.TODO(), webhook, metav1.UpdateOptions{})
	return err
}
// updateWebhook stores a new configuration in the MutatingWebhookConfiguration object.
updateWebhook stores a new configuration in the MutatingWebhookConfiguration object.
// updateWebhook stores a new configuration in the MutatingWebhookConfiguration object .
func (c *ControllerV1) updateWebhook(secret *corev1.Secret, webhook *admiv1.MutatingWebhookConfiguration) error {
	webhook = webhook.DeepCopy()
	webhook.Webhooks = c.newWebhooks(secret)
	_, err := c.clientSet.AdmissionregistrationV1().MutatingWebhookConfigurations().Update(context.TODO(), webhook, metav1.UpdateOptions{})
	return err
}
func ( c * ControllerV1 ) updateWebhook ( secret * corev1 . Secret , webhook * admiv1 . MutatingWebhookConfiguration ) error { webhook = webhook . DeepCopy ( ) webhook . Webhooks = c . newWebhooks ( secret ) _ , err := c . clientSet . AdmissionregistrationV1 ( ) . MutatingWebhookConfigurations ( ) . Update ( context . TODO ( ) , webhook , metav1 . UpdateOptions { } ) return err }
updateWebhook stores a new configuration in the MutatingWebhookConfiguration object.
updateWebhook stores a new configuration in the MutatingWebhookConfiguration object .