Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Jul 6, 2023
1 parent d573012 commit 40a9e9f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,6 @@ func newConfigValidationController(ctx context.Context, cmw configmap.Watcher) *
)
}

func copyAndOverrideWebhookQueueName(ctx context.Context, queueName string) context.Context {
cpWopts := *webhook.GetOptions(ctx)
if cpWopts.ControllerOptions != nil {
// Override if the queue name is set elsewhere, context propagates the last value set
cOpts := *cpWopts.ControllerOptions
cOpts.WorkQueueName = queueName
cpWopts.ControllerOptions = &cOpts
} else {
cpWopts.ControllerOptions = &controller.ControllerOptions{WorkQueueName: queueName}
}
cpWopts.ControllerOptions.Logger = logging.FromContext(ctx)
return webhook.WithOptions(ctx, cpWopts)
}

func main() {
// Set up a signal context with our webhook options
ctx := webhook.WithOptions(signals.NewContext(), webhook.Options{
Expand Down

0 comments on commit 40a9e9f

Please sign in to comment.