func (c *ControllerV1) newWebhooks(secret *corev1.Secret) []admiv1.MutatingWebhook {
	webhooks := []admiv1.MutatingWebhook{}
	for _, tpl := range c.webhookTemplates {
		tpl.ClientConfig.CABundle = certificate.GetCABundle(secret.Data)
		webhooks = append(webhooks, tpl)
	}

	return webhooks
}
// newWebhooks generates MutatingWebhook objects from config templates with updated CABundle from Secret.
newWebhooks generates MutatingWebhook objects from config templates with updated CABundle from Secret.
// newWebhooks generates MutatingWebhook objects from config templates with updated CABundle from Secret .
func (c *ControllerV1) newWebhooks(secret *corev1.Secret) []admiv1.MutatingWebhook {
	webhooks := []admiv1.MutatingWebhook{}
	for _, tpl := range c.webhookTemplates {
		tpl.ClientConfig.CABundle = certificate.GetCABundle(secret.Data)
		webhooks = append(webhooks, tpl)
	}
	return webhooks
}
func ( c * ControllerV1 ) newWebhooks ( secret * corev1 . Secret ) [ ] admiv1 . MutatingWebhook { webhooks := [ ] admiv1 . MutatingWebhook { } for _ , tpl := range c . webhookTemplates { tpl . ClientConfig . CABundle = certificate . GetCABundle ( secret . Data ) webhooks = append ( webhooks , tpl ) } return webhooks }
newWebhooks generates MutatingWebhook objects from config templates with updated CABundle from Secret.
newWebhooks generates MutatingWebhook objects from config templates with updated CABundle from Secret .