mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
use comparable host path instead of full url when creating a targetpool
This commit is contained in:
parent
aa1849efc4
commit
2d5d301669
@ -535,7 +535,7 @@ func (gce *GCECloud) createTargetPoolAndHealthCheck(svc *v1.Service, name, servi
|
|||||||
|
|
||||||
var instances []string
|
var instances []string
|
||||||
for _, host := range hosts {
|
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))
|
glog.Infof("Creating targetpool %v with %d healthchecks", name, len(hcLinks))
|
||||||
pool := &compute.TargetPool{
|
pool := &compute.TargetPool{
|
||||||
|
Loading…
Reference in New Issue
Block a user