Skip to content

Commit

Permalink
keep --port as deprecated flag
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Apr 2, 2024
1 parent c8384cc commit 609723d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/k8s/cmd/k8sd/k8sd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func NewRootCmd(env cmdutil.ExecutionEnvironment) *cobra.Command {
cmd.PersistentFlags().BoolVarP(&rootCmdOpts.logVerbose, "verbose", "v", true, "Show all information messages")
cmd.PersistentFlags().StringVar(&rootCmdOpts.stateDir, "state-dir", "", "Directory with the dqlite datastore")

cmd.Flags().Uint("port", 0, "Default port for the HTTP API")
cmd.Flags().MarkDeprecated("port", "this flag does not have any effect, and will be removed in a future version")

cmd.AddCommand(newSqlCmd(env))

return cmd
Expand Down

0 comments on commit 609723d

Please sign in to comment.