Skip to content

Commit f26ddd9

Browse files
committed
fix
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 53da72d commit f26ddd9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

api/v1beta1/azuremanagedcluster_webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import (
2727

2828
// SetupWebhookWithManager sets up and registers the webhook with the manager.
2929
func (r *AzureManagedCluster) SetupWebhookWithManager(mgr ctrl.Manager) error {
30+
w := new(azureManagedClusterWebhook)
3031
return ctrl.NewWebhookManagedBy(mgr).
3132
For(r).
33+
WithValidator(w).
3234
Complete()
3335
}
3436

api/v1beta1/azuremanagedclustertemplate_webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import (
2727

2828
// SetupWebhookWithManager sets up and registers the webhook with the manager.
2929
func (r *AzureManagedClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error {
30+
w := new(azureManagedClusterTemplateWebhook)
3031
return ctrl.NewWebhookManagedBy(mgr).
3132
For(r).
33+
WithValidator(w).
3234
Complete()
3335
}
3436

exp/api/v1beta1/azuremachinepoolmachine_webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import (
2929

3030
// SetupWebhookWithManager sets up and registers the webhook with the manager.
3131
func (ampm *AzureMachinePoolMachine) SetupWebhookWithManager(mgr ctrl.Manager) error {
32+
w := new(azureMachinePoolMachineWebhook)
3233
return ctrl.NewWebhookManagedBy(mgr).
3334
For(ampm).
35+
WithValidator(w).
3436
Complete()
3537
}
3638

0 commit comments

Comments
 (0)