From d70128e0f9d7744fb337532ccf1b499b79fd7258 Mon Sep 17 00:00:00 2001 From: Yusho Yamaguchi Date: Mon, 24 Jun 2024 01:17:59 +0900 Subject: [PATCH] refactor: cli messages --- cli/multicast.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/multicast.go b/cli/multicast.go index 043511c2ab..57a5908845 100644 --- a/cli/multicast.go +++ b/cli/multicast.go @@ -28,7 +28,7 @@ func newCmdMulticast() *cobra.Command { func newCmdMulticastList() *cobra.Command { cmd := &cobra.Command{ Use: "list", - Short: "Show list of somthing about multicast", + Short: "Shows the information about multicast groups", Long: ``, } @@ -46,7 +46,7 @@ func newCmdMulticastListGroup() *cobra.Command { } cmd := &cobra.Command{ Use: "group", - Short: "Show list of multicast groups in every node", + Short: "Shows list of multicast groups in every node", RunE: func(cmd *cobra.Command, args []string) error { params.CiliumNamespace = namespace mc := multicast.NewMulticast(k8sClient, params) @@ -68,7 +68,7 @@ func newCmdMulticastListSubscriber() *cobra.Command { } cmd := &cobra.Command{ Use: "subscriber", - Short: "Show list of subscribers belonging to the specified multicast group", + Short: "Shows list of subscribers belonging to the specified multicast group", RunE: func(cmd *cobra.Command, args []string) error { params.CiliumNamespace = namespace mc := multicast.NewMulticast(k8sClient, params) @@ -92,13 +92,13 @@ func newCmdMulticastAdd() *cobra.Command { } cmd := &cobra.Command{ Use: "add", - Short: "Add CiliumInternalIPs of all nodes to the specified multicast group as subscribers in every cilium-agent", + Short: "Add all nodes to the specified multicast group as subscribers in every cilium-agent", RunE: func(cmd *cobra.Command, args []string) error { params.CiliumNamespace = namespace mc := multicast.NewMulticast(k8sClient, params) err := mc.AddAllNodes() if err != nil { - fatalf("Unable to add CiliumInternalIP of all nodes: %s", err) + fatalf("Unable to add all nodes: %s", err) } return nil }, @@ -114,13 +114,13 @@ func newCmdMulticastDel() *cobra.Command { } cmd := &cobra.Command{ Use: "del", - Short: "Delete CiliumInternalIPs of all nodes from the specified multicast group's subscribers in every cilium-agent", + Short: "Delete all nodes from the specified multicast group's subscribers in every cilium-agent", RunE: func(cmd *cobra.Command, args []string) error { params.CiliumNamespace = namespace mc := multicast.NewMulticast(k8sClient, params) err := mc.DelAllNodes() if err != nil { - fatalf("Unable to delete CiliumInternalIP of all nodes: %s", err) + fatalf("Unable to delete all nodes: %s", err) } return nil },