Skip to content

Commit 695b95c

Browse files
committed
rm-disable-compression: hide the flag --disable-compression
1 parent 20d9b6f commit 695b95c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/agent/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ type AgentCmdFlags struct {
168168
// Prometheus (--enable-metrics) enables the Prometheus metrics server.
169169
Prometheus bool
170170

171-
// DisableCompression (--disable-compression) disables the GZIP compression
172-
// when uploading the data. Useful for debugging purposes, or when an
173-
// intermediate proxy doesn't like compressed data.
171+
// DisableCompression (--disable-compression) is deprecated and no longer
172+
// has an effect.
174173
DisableCompression bool
175174
}
176175

@@ -304,6 +303,7 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
304303
false,
305304
"Deprecated. No longer has an effect.",
306305
)
306+
c.PersistentFlags().MarkHidden("disable-compression")
307307
}
308308

309309
type AuthMode string

0 commit comments

Comments
 (0)