Skip to content

Commit

Permalink
Add command line support for NodeUpSource argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tsandall committed Aug 8, 2017
1 parent a8796af commit 8c72227
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/kops/update_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type UpdateClusterOptions struct {
SSHPublicKey string
MaxTaskDuration time.Duration
CreateKubecfg bool
NodeUpSource string

Phase string
}
Expand Down Expand Up @@ -110,6 +111,7 @@ func NewCmdUpdateCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&options.OutDir, "out", options.OutDir, "Path to write any local output")
cmd.Flags().BoolVar(&options.CreateKubecfg, "create-kube-config", options.CreateKubecfg, "Will control automatically creating the kube config file on your local filesystem")
cmd.Flags().StringVar(&options.Phase, "phase", options.Phase, "Subset of tasks to run")
cmd.Flags().StringVar(&options.NodeUpSource, "node-up-source", options.NodeUpSource, "Set URL of nodeup binary")
return cmd
}

Expand Down Expand Up @@ -210,6 +212,7 @@ func RunUpdateCluster(f *util.Factory, clusterName string, out io.Writer, c *Upd
MaxTaskDuration: c.MaxTaskDuration,
InstanceGroups: instanceGroups,
Phase: phase,
NodeUpSource: c.NodeUpSource,
}

err = applyCmd.Run()
Expand Down

0 comments on commit 8c72227

Please sign in to comment.