mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Fixes some typos/spaces in the GCE cloudprovider
This commit is contained in:
parent
f8776f8f0c
commit
31be3a37f8
@ -46,7 +46,7 @@ func (gce *GCECloud) SetProxyForGlobalForwardingRule(forwardingRuleName, targetP
|
|||||||
return mc.Observe(gce.c.GlobalForwardingRules().SetTarget(context.Background(), meta.GlobalKey(forwardingRuleName), target))
|
return mc.Observe(gce.c.GlobalForwardingRules().SetTarget(context.Background(), meta.GlobalKey(forwardingRuleName), target))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteGlobalForwardingRule deletes the GlobalForwakdingRule by name.
|
// DeleteGlobalForwardingRule deletes the GlobalForwardingRule by name.
|
||||||
func (gce *GCECloud) DeleteGlobalForwardingRule(name string) error {
|
func (gce *GCECloud) DeleteGlobalForwardingRule(name string) error {
|
||||||
mc := newForwardingRuleMetricContext("delete", "")
|
mc := newForwardingRuleMetricContext("delete", "")
|
||||||
return mc.Observe(gce.c.GlobalForwardingRules().Delete(context.Background(), meta.GlobalKey(name)))
|
return mc.Observe(gce.c.GlobalForwardingRules().Delete(context.Background(), meta.GlobalKey(name)))
|
||||||
|
@ -587,7 +587,7 @@ func (gce *GCECloud) computeHostTags(hosts []*gceInstance) ([]string, error) {
|
|||||||
nodeInstancePrefix := gce.nodeInstancePrefix
|
nodeInstancePrefix := gce.nodeInstancePrefix
|
||||||
for _, host := range hosts {
|
for _, host := range hosts {
|
||||||
if !strings.HasPrefix(host.Name, gce.nodeInstancePrefix) {
|
if !strings.HasPrefix(host.Name, gce.nodeInstancePrefix) {
|
||||||
glog.Warningf("instance '%s' does not conform to prefix '%s', ignoring filter", host, gce.nodeInstancePrefix)
|
glog.Warningf("instance %v does not conform to prefix '%s', ignoring filter", host, gce.nodeInstancePrefix)
|
||||||
nodeInstancePrefix = ""
|
nodeInstancePrefix = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user