From fab6add7b5f1572ff18ea622532d8be4b26c183e Mon Sep 17 00:00:00 2001 From: r-vasquez Date: Tue, 7 May 2024 13:40:33 -0700 Subject: [PATCH] rpk: document --set flag in rpk container start This has always worked but it is hidden, we now document it. This is not needed but may be a good alternative for testing config properties on start. --- src/go/rpk/pkg/cli/container/start.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/go/rpk/pkg/cli/container/start.go b/src/go/rpk/pkg/cli/container/start.go index ee601a9128a89..b9ae5c552e077 100644 --- a/src/go/rpk/pkg/cli/container/start.go +++ b/src/go/rpk/pkg/cli/container/start.go @@ -188,6 +188,7 @@ You can retry profile creation by running: command.Flags().StringVar(&consoleImage, "console-image", common.DefaultConsoleImage(), "An arbitrary container Redpanda Console image to use") command.Flags().BoolVar(&pull, "pull", false, "Force pull the container image used") command.Flags().BoolVar(&noProfile, "no-profile", false, "If true, rpk will not create an rpk profile after creating a cluster") + command.Flags().String("set", "", "Redpanda configuration property to set on start. Follows 'rpk redpanda config set' format") command.Flags().StringSliceVar(&kPorts, flagKafkaPorts, nil, "Kafka protocol ports to listen on; check help text for more information") command.Flags().StringSliceVar(&aPorts, flagAdminPorts, nil, "Redpanda Admin API ports to listen on; check help text for more information") command.Flags().StringSliceVar(&srPorts, flagSRPorts, nil, "Schema registry ports to listen on; check help text for more information")