diff --git a/pkg/ctl/create/cluster.go b/pkg/ctl/create/cluster.go index 2d42900ce9..9120be9b1e 100644 --- a/pkg/ctl/create/cluster.go +++ b/pkg/ctl/create/cluster.go @@ -28,8 +28,6 @@ var ( setContext bool availabilityZones []string - clusterConfigFile = "" - kopsClusterNameForVPC string subnets map[api.SubnetTopology]*[]string addonsStorageClass bool diff --git a/pkg/ctl/create/create.go b/pkg/ctl/create/create.go index b0b611abd8..292fb870f4 100644 --- a/pkg/ctl/create/create.go +++ b/pkg/ctl/create/create.go @@ -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{ diff --git a/pkg/ctl/delete/cluster.go b/pkg/ctl/delete/cluster.go index 1f98113b80..294cdbb902 100644 --- a/pkg/ctl/delete/cluster.go +++ b/pkg/ctl/delete/cluster.go @@ -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() diff --git a/pkg/ctl/delete/delete.go b/pkg/ctl/delete/delete.go index 51b4ff7bf0..980207cae7 100644 --- a/pkg/ctl/delete/delete.go +++ b/pkg/ctl/delete/delete.go @@ -9,6 +9,8 @@ import ( var ( wait = false plan = true + + clusterConfigFile = "" ) // Command will create the `delete` commands diff --git a/pkg/ctl/update/cluster.go b/pkg/ctl/update/cluster.go index cba700841e..bc99882ded 100644 --- a/pkg/ctl/update/cluster.go +++ b/pkg/ctl/update/cluster.go @@ -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() diff --git a/pkg/ctl/update/update.go b/pkg/ctl/update/update.go index 3e225c22ff..242a60ccb7 100644 --- a/pkg/ctl/update/update.go +++ b/pkg/ctl/update/update.go @@ -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{