Skip to content

Commit e3031b2

Browse files
committed
Clarify comment regarding the use of WebhookManagedBy for managed objects in createWebhooks function
1 parent 22fe77a commit e3031b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/setup/webhooks.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ func createWebhooks(mgr ctrl.Manager, f *forest.Forest, opts Options) error {
7676
}
7777

7878
// Create webhooks for managed objects
79+
// Note: We cannot use WebhookManagedBy here because objects validator handles all resource types dynamically (*)
80+
// and WebhookManagedBy requires a specific type to be specified with For().
7981
{
8082
handler := &objects.Validator{
8183
Log: ctrl.Log.WithName("objects").WithName("validate"),

0 commit comments

Comments
 (0)