diff --git a/kubectl-fdb/cmd/k8s_client.go b/kubectl-fdb/cmd/k8s_client.go index ff6f59225..5ac96c884 100644 --- a/kubectl-fdb/cmd/k8s_client.go +++ b/kubectl-fdb/cmd/k8s_client.go @@ -297,7 +297,7 @@ func getProcessGroupIDsFromPodName(cluster *fdbv1beta2.FoundationDBCluster, podN // getProcessGroupIdsWithClass returns a list of ProcessGroupIDs in the given cluster which are of the given processClass func getProcessGroupIdsWithClass(cluster *fdbv1beta2.FoundationDBCluster, processClass string) []fdbv1beta2.ProcessGroupID { - var matchingProcessGroupIDs []fdbv1beta2.ProcessGroupID + matchingProcessGroupIDs := []fdbv1beta2.ProcessGroupID{} for _, processGroup := range cluster.Status.ProcessGroups { if processGroup.ProcessClass != fdbv1beta2.ProcessClass(processClass) { continue diff --git a/kubectl-fdb/cmd/remove_process_group.go b/kubectl-fdb/cmd/remove_process_group.go index 25467702f..fdae780b1 100644 --- a/kubectl-fdb/cmd/remove_process_group.go +++ b/kubectl-fdb/cmd/remove_process_group.go @@ -35,8 +35,8 @@ func newRemoveProcessGroupCmd(streams genericclioptions.IOStreams) *cobra.Comman cmd := &cobra.Command{ Use: "process-groups", - Short: "Adds a process group (or multiple) to the remove list of the given cluster", - Long: "Adds a process group (or multiple) to the remove list field of the given cluster", + Short: "Adds a process group (or multiple) to the remove list of the given cluster, or matching given pod names", + Long: "Adds a process group (or multiple) to the remove list field of the given cluster, or matching given pod names", RunE: func(cmd *cobra.Command, args []string) error { wait, err := cmd.Root().Flags().GetBool("wait") if err != nil {