Skip to content

Commit

Permalink
feat: support summary output for route/cluster/listener in hgctl gate…
Browse files Browse the repository at this point in the history
…way-config command (alibaba#995)
  • Loading branch information
haifzhu committed May 24, 2024
1 parent 86b279f commit bc0787d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/hgctl/config_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func runClusterConfig(c *cobra.Command, args []string) error {
PodNamespace: podNamespace,
BindAddress: bindAddress,
Output: output,
EnvoyConfigType: config.RouteEnvoyConfigType,
EnvoyConfigType: config.ClusterEnvoyConfigType,
IncludeEds: true,
}, c.OutOrStdout())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/hgctl/config_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func newConfigCommand() *cobra.Command {
flags := cfgCommand.Flags()
options.AddKubeConfigFlags(flags)

cfgCommand.PersistentFlags().StringVarP(&output, "output", "o", "short", "Output format: one of json|yaml|short")
cfgCommand.PersistentFlags().StringVarP(&output, "output", "o", "json", "Output format: one of json|yaml|short")
cfgCommand.PersistentFlags().StringVarP(&podNamespace, "namespace", "n", "higress-system", "Namespace where envoy proxy pod are installed.")

return cfgCommand
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/hgctl/config_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func runListenerConfig(c *cobra.Command, args []string) error {
PodNamespace: podNamespace,
BindAddress: bindAddress,
Output: output,
EnvoyConfigType: config.RouteEnvoyConfigType,
EnvoyConfigType: config.ListenerEnvoyConfigType,
IncludeEds: true,
}, c.OutOrStdout())
if err != nil {
Expand Down

0 comments on commit bc0787d

Please sign in to comment.