mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 21:21:14 +00:00
Merge pull request #51072 from hchenxa/hchenxa_typoFix
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix minor typo **What this PR does / why we need it**: Typo error **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
@@ -57,7 +57,7 @@ func init() {
|
|||||||
panic("Incorrect default GCE L7 source ranges")
|
panic("Incorrect default GCE L7 source ranges")
|
||||||
}
|
}
|
||||||
|
|
||||||
flag.Var(&lbSrcRngsFlag, "cloud-provider-gce-lb-src-cidrs", "CIDRS opened in GCE firewall for LB traffic proxy & health checks")
|
flag.Var(&lbSrcRngsFlag, "cloud-provider-gce-lb-src-cidrs", "CIDRs opened in GCE firewall for LB traffic proxy & health checks")
|
||||||
}
|
}
|
||||||
|
|
||||||
// String is the method to format the flag's value, part of the flag.Value interface.
|
// String is the method to format the flag's value, part of the flag.Value interface.
|
||||||
@@ -72,7 +72,7 @@ func (c *cidrs) Set(value string) error {
|
|||||||
c.isSet = true
|
c.isSet = true
|
||||||
c.ipn = make(netsets.IPNet)
|
c.ipn = make(netsets.IPNet)
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("GCE LB CIDRS have already been set")
|
return fmt.Errorf("GCE LB CIDRs have already been set")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cidr := range strings.Split(value, ",") {
|
for _, cidr := range strings.Split(value, ",") {
|
||||||
|
Reference in New Issue
Block a user