From c5581d7b904c5fb0753505181dac26b386a54b32 Mon Sep 17 00:00:00 2001 From: chrislovecnm Date: Sat, 22 Jul 2017 07:32:11 -0600 Subject: [PATCH] removing dead code --- upup/pkg/fi/cloudup/apply_cluster.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/upup/pkg/fi/cloudup/apply_cluster.go b/upup/pkg/fi/cloudup/apply_cluster.go index 597c37b660..d6e8dc2cad 100644 --- a/upup/pkg/fi/cloudup/apply_cluster.go +++ b/upup/pkg/fi/cloudup/apply_cluster.go @@ -677,24 +677,6 @@ func (c *ApplyClusterCmd) Run() error { return fmt.Errorf("unknown cloudprovider %q", cluster.Spec.CloudProvider) } - //// TotalNodeCount computes the total count of nodes - //l.TemplateFunctions["TotalNodeCount"] = func() (int, error) { - // count := 0 - // for _, group := range c.InstanceGroups { - // if group.IsMaster() { - // continue - // } - // if group.Spec.MaxSize != nil { - // count += *group.Spec.MaxSize - // } else if group.Spec.MinSize != nil { - // count += *group.Spec.MinSize - // } else { - // // Guestimate - // count += 5 - // } - // } - // return count, nil - //} l.TemplateFunctions["Masters"] = tf.modelContext.MasterInstanceGroups tf.AddTo(l.TemplateFunctions) @@ -827,11 +809,6 @@ func findHash(url string) (*hashing.Hash, error) { // upgradeSpecs ensures that fields are fully populated / defaulted func (c *ApplyClusterCmd) upgradeSpecs(assetBuilder *assets.AssetBuilder) error { - //err := c.Cluster.PerformAssignments() - //if err != nil { - // return fmt.Errorf("error populating configuration: %v", err) - //} - fullCluster, err := PopulateClusterSpec(c.Cluster, assetBuilder) if err != nil { return err