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 c6950dd commit 7224590Copy full SHA for 7224590
cmd/mcp-operator/app/app.go
@@ -136,14 +136,20 @@ func (o *Options) runInit(ctx context.Context) error {
136
installOptions := o.WebhooksFlags.InstallOptions
137
installOptions = append(installOptions, webhooks.WithRemoteClient{Client: crateClient})
138
139
+ webhookTypes := []webhooks.APITypes{
140
+ {
141
+ Obj: &openmcpv1alpha1.ManagedControlPlane{},
142
+ Validator: true,
143
+ Defaulter: true,
144
+ },
145
+ }
146
+
147
// Install webhooks
148
err = webhooks.Install(
149
ctx,
150
hostClient,
151
sc,
- []client.Object{
- &openmcpv1alpha1.ManagedControlPlane{},
- },
152
+ webhookTypes,
153
installOptions...,
154
)
155
if err != nil {
0 commit comments