From 2d5d301669a96d9c43b1a7cb68544c6917cd55c5 Mon Sep 17 00:00:00 2001 From: Ashley Gau Date: Tue, 6 Feb 2018 10:48:09 -0800 Subject: [PATCH] use comparable host path instead of full url when creating a targetpool --- pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go b/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go index ceaaf053593..e3570dccc61 100644 --- a/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go +++ b/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go @@ -535,7 +535,7 @@ func (gce *GCECloud) createTargetPoolAndHealthCheck(svc *v1.Service, name, servi var instances []string for _, host := range hosts { - instances = append(instances, makeHostURL(gce.service.BasePath, gce.projectID, host.Zone, host.Name)) + instances = append(instances, host.makeComparableHostPath()) } glog.Infof("Creating targetpool %v with %d healthchecks", name, len(hcLinks)) pool := &compute.TargetPool{