@@ -44,9 +44,8 @@ type CommonServiceConfig struct {
44
44
Metrics struct {
45
45
BindAddress string `mapstructure:"metrics-bind-address"`
46
46
Secure bool `mapstructure:"metrics-secure"`
47
- EnableHTTP2 bool `mapstructure:"metrics-enable-http2"`
48
47
} `mapstructure:",squash"`
49
-
48
+ EnableHTTP2 bool `mapstructure:"enable-http2"`
50
49
HealthProbeBindAddress string `mapstructure:"health-probe-bind-address"`
51
50
52
51
LeaderElection struct {
@@ -73,7 +72,7 @@ func CommonFlags() *pflag.FlagSet {
73
72
flagSet .Duration ("shutdown-timeout" , 1 * time .Minute , "Set the shutdown timeout" )
74
73
flagSet .String ("metrics-bind-address" , ":8080" , "Set the metrics bind address" )
75
74
flagSet .Bool ("metrics-secure" , false , "Set if metrics should be exposed via https" )
76
- flagSet .Bool ("metrics- enable-http2" , true , "Toggle to disable metrics serving using http2" )
75
+ flagSet .Bool ("enable-http2" , true , "Toggle to disable metrics/webhook serving using http2" )
77
76
flagSet .String ("health-probe-bind-address" , ":8090" , "Set the health probe bind address" )
78
77
flagSet .Bool ("leader-elect" , false , "Enable leader election" )
79
78
flagSet .String ("sentry-dsn" , "" , "Set the Sentry DSN" )
0 commit comments