Skip to content

Commit

Permalink
empty checks removed
Browse files Browse the repository at this point in the history
mistake to add the empty checks
  • Loading branch information
luthermonson authored and Craig Jellick committed May 14, 2019
1 parent 669d56e commit 2329f83
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ func run(c *cli.Context) error {
namespace := c.String("namespace")
threadiness := c.Int("threads")

if "" == kubeconfig && "" == masterURL {
klog.Info("A working k8s kubeconfig or masterurl is requred.")
return nil
}

if threadiness <= 0 {
klog.Infof("Can not start with thread count of %d, please pass a proper thread count.", threadiness)
return nil
Expand All @@ -92,7 +87,7 @@ func run(c *cli.Context) error {

cfg, err := clientcmd.BuildConfigFromFlags(masterURL, kubeconfig)
if err != nil {
klog.Fatalf("Error building kubeconfig: %s", err.Error())
klog.Fatalf("Error building config from flags: %s", err.Error())
}

helms, err := helmv1.NewFactoryFromConfigWithNamespace(cfg, namespace)
Expand Down

0 comments on commit 2329f83

Please sign in to comment.