We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eedf1b0 commit b2f8193Copy full SHA for b2f8193
test/infrastructure/docker/internal/webhooks/dockerclustertemplate_webhook.go
@@ -38,7 +38,7 @@ type DockerClusterTemplate struct{}
38
func (webhook *DockerClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error {
39
return ctrl.NewWebhookManagedBy(mgr).
40
For(&infrav1.DockerClusterTemplate{}).
41
- WithDefaulter(webhook).
+ WithDefaulter(webhook, admission.DefaulterRemoveUnknownOrOmitableFields).
42
WithValidator(webhook).
43
Complete()
44
}
0 commit comments