Skip to content

Commit

Permalink
[NET-9097] Update service resolver webhook registration missed in pre…
Browse files Browse the repository at this point in the history
…vious backport (#4008)

Update service resolver webhook registration missed in #3967
  • Loading branch information
nathancoleman authored May 20, 2024
1 parent af8d086 commit bbd9efa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions control-plane/subcommand/inject-connect/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,12 +800,11 @@ func (c *Command) Run(args []string) int {
ConsulMeta: consulMeta,
}).SetupWithManager(mgr)

mgr.GetWebhookServer().Register("/mutate-v1alpha1-serviceresolver",
&ctrlRuntimeWebhook.Admission{Handler: &v1alpha1.ServiceResolverWebhook{
Client: mgr.GetClient(),
Logger: ctrl.Log.WithName("webhooks").WithName(apicommon.ServiceResolver),
ConsulMeta: consulMeta,
}})
(&v1alpha1.ServiceResolverWebhook{
Client: mgr.GetClient(),
Logger: ctrl.Log.WithName("webhooks").WithName(apicommon.ServiceResolver),
ConsulMeta: consulMeta,
}).SetupWithManager(mgr)

(&v1alpha1.ProxyDefaultsWebhook{
Client: mgr.GetClient(),
Expand Down

0 comments on commit bbd9efa

Please sign in to comment.