Skip to content

Commit

Permalink
Use the same default port for the HTTP API across serve and serve-tes…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
torbenw committed Feb 20, 2024
1 parent 58fef87 commit f7fd754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config) {
util.RegisterGRPCServerFlags(cmd.Flags(), &config.GRPCServer, "grpc", "gRPC", ":50051", true)
util.RegisterGRPCServerFlags(cmd.Flags(), &config.ReadOnlyGRPCServer, "readonly-grpc", "read-only gRPC", ":50052", true)

util.RegisterHTTPServerFlags(cmd.Flags(), &config.HTTPGateway, "http", "http", ":8081", false)
util.RegisterHTTPServerFlags(cmd.Flags(), &config.ReadOnlyHTTPGateway, "readonly-http", "read-only HTTP", ":8082", false)
util.RegisterHTTPServerFlags(cmd.Flags(), &config.HTTPGateway, "http", "http", ":8443", false)
util.RegisterHTTPServerFlags(cmd.Flags(), &config.ReadOnlyHTTPGateway, "readonly-http", "read-only HTTP", ":8444", false)

cmd.Flags().StringSliceVar(&config.LoadConfigs, "load-configs", []string{}, "configuration yaml files to load")

Expand Down

0 comments on commit f7fd754

Please sign in to comment.