mirror of https://github.com/kubernetes/kops.git
Merge pull request #15955 from justinsb/gce_network_tags_work_with_ipv6
gce ipv6: we can use network tags with ipv6 addresses
This commit is contained in:
commit
d82d574dbe
|
|
@ -156,6 +156,9 @@ func (b *FirewallModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {
|
|||
}
|
||||
|
||||
if b.NetworkingIsIPAlias() || b.NetworkingIsGCERoutes() {
|
||||
if b.IsIPv6Only() {
|
||||
// We can use tags for IPv6, and this is covered by prior rules
|
||||
} else {
|
||||
// When using IP alias or custom routes, SourceTags for identifying traffic don't work, and we must recognize by CIDR
|
||||
|
||||
if b.Cluster.Spec.Networking.PodCIDR == "" {
|
||||
|
|
@ -174,6 +177,7 @@ func (b *FirewallModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {
|
|||
Allowed: allProtocols,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue