Skip to content

Commit

Permalink
update for v3.1.0 release
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
kubemq committed Sep 21, 2020
1 parent c61667e commit 67021de
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 64 deletions.
76 changes: 25 additions & 51 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (o *ConfigOptions) Run(ctx context.Context) error {
if err != nil {
return err
}
if list == nil || len(list) == 0 {
if len(list) == 0 {
utils.Println("No Kubemq clusters were found for selection")
} else {
clusterSelected := ""
Expand Down
5 changes: 0 additions & 5 deletions cmd/create/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
operatorTypes "github.com/kubemq-io/kubemqctl/pkg/k8s/types/operator"
"github.com/kubemq-io/kubemqctl/pkg/utils"
"github.com/spf13/cobra"
"reflect"
)

type CreateOptions struct {
Expand Down Expand Up @@ -122,7 +121,3 @@ func (o *CreateOptions) Run(ctx context.Context) error {
return nil

}

func isDefault(a, b interface{}) bool {
return reflect.DeepEqual(a, b)
}
4 changes: 2 additions & 2 deletions cmd/create/connector/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (o *deployOptions) complete() error {
Message: "Choose Connector type:",
Options: []string{"targets", "sources", "bridges"},
}
survey.AskOne(prompt, &o.connectorType)
_ = survey.AskOne(prompt, &o.connectorType)
}
if o.configFile != "" {
data, err := ioutil.ReadFile(o.configFile)
Expand All @@ -79,7 +79,7 @@ func (o *deployOptions) complete() error {
Message: "Config file",
FileName: "*.yaml",
}
survey.AskOne(prompt, &o.configData)
_ = survey.AskOne(prompt, &o.configData)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/client/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func PodStatus(p *v1.Pod) string {
if len(p.Status.ContainerStatuses) > 0 {
cs := p.Status.ContainerStatuses[0]
if cs.State.Running != nil {
fields["Current Status"] = fmt.Sprintf("Running")
fields["Current Status"] = "Running"
}
if cs.State.Waiting != nil {
fields["Current Status"] = fmt.Sprintf("Waiting (%s)", cs.State.Waiting.Reason)
Expand Down
8 changes: 4 additions & 4 deletions pkg/k8s/types/kubemqcluster/deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func (in *KubemqCluster) DeepCopyInto(out *KubemqCluster) {
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return

}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemqCluster.
Expand Down Expand Up @@ -44,7 +44,7 @@ func (in *KubemqClusterList) DeepCopyInto(out *KubemqClusterList) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return

}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemqClusterList.
Expand Down Expand Up @@ -149,7 +149,7 @@ func (in *KubemqClusterSpec) DeepCopyInto(out *KubemqClusterSpec) {
in, out := &in.Queue, &out.Queue
*out = (*in).DeepCopy()
}
return

}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemqClusterSpec.
Expand All @@ -170,7 +170,7 @@ func (in *KubemqClusterStatus) DeepCopyInto(out *KubemqClusterStatus) {
*out = new(int32)
**out = **in
}
return

}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemqClusterStatus.
Expand Down

0 comments on commit 67021de

Please sign in to comment.