Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Feb 4, 2019
1 parent 0548c16 commit 2398c8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/ctl/create/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var (
setContext bool
availabilityZones []string

configFile = ""
clusterConfigFile = ""

kopsClusterNameForVPC string
subnets map[api.SubnetTopology]*[]string
Expand Down Expand Up @@ -67,7 +67,7 @@ func createClusterCmd(g *cmdutils.Grouping) *cobra.Command {
cmdutils.AddRegionFlag(fs, p)
fs.StringSliceVar(&availabilityZones, "zones", nil, "(auto-select if unspecified)")
cmdutils.AddVersionFlag(fs, cfg.Metadata)
fs.StringVarP(&configFile, "config-file", "f", "", "load configuration from a file")
fs.StringVarP(&clusterConfigFile, "config-file", "f", "", "load configuration from a file")
})

group.InFlagSet("Initial nodegroup", func(fs *pflag.FlagSet) {
Expand Down Expand Up @@ -130,8 +130,8 @@ func doCreateCluster(p *api.ProviderConfig, cfg *api.ClusterConfig, nameArg stri
return err
}

if configFile != "" {
if err := eks.LoadConfigFromFile(configFile, cfg); err != nil {
if clusterConfigFile != "" {
if err := eks.LoadConfigFromFile(clusterConfigFile, cfg); err != nil {
return err
}
meta = cfg.Metadata
Expand Down Expand Up @@ -535,7 +535,7 @@ func doCreateCluster(p *api.ProviderConfig, cfg *api.ClusterConfig, nameArg stri
// --storage-class flag is only for backwards compatibility,
// we always create the storage class when --config-file is
// used, as this is 1.10-only
if addonsStorageClass || configFile != "" {
if addonsStorageClass || clusterConfigFile != "" {
if err = ctl.AddDefaultStorageClass(clientSet); err != nil {
return err
}
Expand Down

0 comments on commit 2398c8b

Please sign in to comment.