Change XPN firewall change message, should be required by security admin.

Add l7lbSrcRngsFlag to gce_loadbalancer.go so that ingress can have
fewer source ranges for l7 health checks.
This commit is contained in:
yankaiz
2018-12-03 15:01:25 -08:00
parent a87c1b2d72
commit bd03c3a096
10 changed files with 36 additions and 16 deletions

View File

@@ -93,6 +93,9 @@ the cloud specific control loops shipped with Kubernetes.`,
// the gce cloudprovider is removed.
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-lb-src-cidrs")
}
if flag.CommandLine.Lookup("cloud-provider-gce-l7lb-src-cidrs") != nil {
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-l7lb-src-cidrs")
}
for _, f := range namedFlagSets.FlagSets {
fs.AddFlagSet(f)
}