Skip to content

Commit 4cd49ed

Browse files
committed
hide --machine-hub since it is meant as a feature flag
Later on, it will be "on" by default: the only thing the user will have to do to push to Machine Hub will be to use the `machineHub` field in config.yaml.
1 parent c6bbefb commit 4cd49ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/agent/config.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,16 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
336336
)
337337
c.PersistentFlags().MarkDeprecated("disable-compression", "no longer has an effect")
338338

339+
// This is a hidden feature flag we use to build the "Machine Hub" feature
340+
// gradually without impacting customers. Once the feature is GA, we will
341+
// turn this flag "on" by default.
339342
c.PersistentFlags().BoolVar(
340343
&cfg.MachineHubMode,
341344
"machine-hub",
342345
false,
343-
"Enables MachineHub mode. The agent will push data to CyberArk MachineHub. Can be used in conjunction with --venafi-cloud.",
346+
"Enables the MachineHub mode. The agent will push data to CyberArk MachineHub.",
344347
)
348+
c.PersistentFlags().MarkHidden("machine-hub")
345349

346350
}
347351

0 commit comments

Comments
 (0)