Initial DO commit to rebase from plane

This commit is contained in:
Kris Nova 2017-03-26 04:02:11 -04:00
parent 5c262bd8a7
commit 49dd9aa179
2 changed files with 6 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func NewCmdCreateCluster(f *util.Factory, out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&options.Target, "target", options.Target, "Target - direct, terraform, cloudformation")
cmd.Flags().StringVar(&options.Models, "model", options.Models, "Models to apply (separate multiple models with commas)")
cmd.Flags().StringVar(&options.Cloud, "cloud", options.Cloud, "Cloud provider to use - gce, aws")
cmd.Flags().StringVar(&options.Cloud, "cloud", options.Cloud, "Cloud provider to use - gce, aws, do")
cmd.Flags().StringSliceVar(&options.Zones, "zones", options.Zones, "Zones in which to run the cluster")
cmd.Flags().StringSliceVar(&options.MasterZones, "master-zones", options.MasterZones, "Zones in which to run masters (must be an odd number)")

View File

@ -96,6 +96,11 @@ type ApplyClusterCmd struct {
}
func (c *ApplyClusterCmd) Run() error {
fmt.Println("We got here!")
fmt.Println(c.Cluster.Spec)
os.Exit(1)
if c.MaxTaskDuration == 0 {
c.MaxTaskDuration = DefaultMaxTaskDuration
}