You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/output/webhook: add server probe configuration (#153)
Setting the STREAM_PROBE env var or the webhook-probe options can now be
used to modify the behaviour of the webhook output to choose whether to
perform an initial server probe and which method to use in the probe.
* empty/unset, 1, true or HEAD: current behaviour
* 0, false: no probe
* GET, CONNECT, OPTIONS, PATCH, POST and PUT: an empty-bodied request
using that method.
rootCmd.PersistentFlags().StringVar(&opts.WebhookOptions.Password, "webhook-password", "", "webhook password for basic authentication")
76
76
rootCmd.PersistentFlags().StringVar(&opts.WebhookOptions.Username, "webhook-username", "", "webhook username for basic authentication")
77
77
rootCmd.PersistentFlags().DurationVar(&opts.WebhookOptions.Timeout, "webhook-timeout", time.Second, "webhook request timeout (zero is no timeout)")
78
+
rootCmd.PersistentFlags().StringVar(&opts.WebhookOptions.Probe, "webhook-probe", "", "webhook server probe request method (''/1/true/HEAD, CONNECT, GET, ..., or 0/false for no probe)")
0 commit comments