Skip to content

Commit

Permalink
fix(webhook): incorrect audit-webhook-subscriber-queue-capacity argum…
Browse files Browse the repository at this point in the history
…ent handling
  • Loading branch information
SOF3 committed Nov 1, 2024
1 parent c3cea2f commit 4f46649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/audit/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ type options struct {

func (options *options) Setup(fs *pflag.FlagSet) {
fs.BoolVar(&options.enable, "audit-webhook-enable", false, "enable audit webhook")
fs.BoolVar(
&options.enable,
fs.IntVar(
&options.subscriberQueueCapacity,
"audit-webhook-subscriber-queue-capacity",
false,
0,
"maximum number of events buffered in the webhook, set to 0 for an unbounded buffer (may cause OOM)",
)
}
Expand Down

0 comments on commit 4f46649

Please sign in to comment.