From 695b95ce4ab114b746648b0314dd25aab389231d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Valais?= Date: Fri, 22 Nov 2024 18:11:00 +0100 Subject: [PATCH] rm-disable-compression: hide the flag --disable-compression --- pkg/agent/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/agent/config.go b/pkg/agent/config.go index 4d2be8cd..f4bd471c 100644 --- a/pkg/agent/config.go +++ b/pkg/agent/config.go @@ -168,9 +168,8 @@ type AgentCmdFlags struct { // Prometheus (--enable-metrics) enables the Prometheus metrics server. Prometheus bool - // DisableCompression (--disable-compression) disables the GZIP compression - // when uploading the data. Useful for debugging purposes, or when an - // intermediate proxy doesn't like compressed data. + // DisableCompression (--disable-compression) is deprecated and no longer + // has an effect. DisableCompression bool } @@ -304,6 +303,7 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) { false, "Deprecated. No longer has an effect.", ) + c.PersistentFlags().MarkHidden("disable-compression") } type AuthMode string