Skip to content

Commit

Permalink
Move definitions of top-level variables to top-level files
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Apr 16, 2019
1 parent 483ef46 commit 55f7ffa
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 0 additions & 2 deletions pkg/ctl/create/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ var (
setContext bool
availabilityZones []string

clusterConfigFile = ""

kopsClusterNameForVPC string
subnets map[api.SubnetTopology]*[]string
addonsStorageClass bool
Expand Down
4 changes: 4 additions & 0 deletions pkg/ctl/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import (
"github.com/weaveworks/eksctl/pkg/ctl/cmdutils"
)

var (
clusterConfigFile = ""
)

// Command will create the `create` commands
func Command(g *cmdutils.Grouping) *cobra.Command {
cmd := &cobra.Command{
Expand Down
4 changes: 0 additions & 4 deletions pkg/ctl/delete/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ import (
"github.com/weaveworks/eksctl/pkg/printers"
)

var (
clusterConfigFile = ""
)

func deleteClusterCmd(g *cmdutils.Grouping) *cobra.Command {
p := &api.ProviderConfig{}
cfg := api.NewClusterConfig()
Expand Down
2 changes: 2 additions & 0 deletions pkg/ctl/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
var (
wait = false
plan = true

clusterConfigFile = ""
)

// Command will create the `delete` commands
Expand Down
7 changes: 0 additions & 7 deletions pkg/ctl/update/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ import (
"github.com/weaveworks/eksctl/pkg/printers"
)

var (
plan = true
wait = true

clusterConfigFile string
)

func updateClusterCmd(g *cmdutils.Grouping) *cobra.Command {
p := &api.ProviderConfig{}
cfg := api.NewClusterConfig()
Expand Down
7 changes: 7 additions & 0 deletions pkg/ctl/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import (
"github.com/weaveworks/eksctl/pkg/ctl/cmdutils"
)

var (
plan = true
wait = true

clusterConfigFile string
)

// Command will create the `create` commands
func Command(g *cmdutils.Grouping) *cobra.Command {
cmd := &cobra.Command{
Expand Down

0 comments on commit 55f7ffa

Please sign in to comment.