Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#1435 from mml/k8s-ig-dead-code
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Delete dead code in cluster_manager.



<!-- Reviewable:start -->
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/contrib/1435)
<!-- Reviewable:end -->
  • Loading branch information
Kubernetes Submit Queue authored Aug 12, 2016
2 parents 34a469f + 1b5d8fe commit 01cf346
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions controllers/gce/controller/cluster_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package controller

import (
"fmt"
"io"
"net/http"
"os"
Expand All @@ -39,10 +38,6 @@ const (
defaultPort = 80
defaultHealthCheckPath = "/"

// A single instance-group is created per cluster manager.
// Tagged with the name of the controller.
instanceGroupPrefix = "k8s-ig"

// A backend is created per nodePort, tagged with the nodeport.
// This allows sharing of backends across loadbalancers.
backendPrefix = "k8s-be"
Expand Down Expand Up @@ -199,10 +194,6 @@ func (c *ClusterManager) GC(lbNames []string, nodePorts []int64) error {
return nil
}

func defaultInstanceGroupName(clusterName string) string {
return fmt.Sprintf("%v-%v", instanceGroupPrefix, clusterName)
}

func getGCEClient(config io.Reader) *gce.GCECloud {
// Creating the cloud interface involves resolving the metadata server to get
// an oauth token. If this fails, the token provider assumes it's not on GCE.
Expand Down

0 comments on commit 01cf346

Please sign in to comment.