Skip to content

Commit

Permalink
refactor: cli messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yushoyamaguchi committed Jun 23, 2024
1 parent 3cf279a commit d70128e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cli/multicast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: ``,
}

Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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
},
Expand All @@ -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
},
Expand Down

0 comments on commit d70128e

Please sign in to comment.