Merge pull request #11915 from olemarkus/nodupcidr

Do not set both CIDR and IPv6CIDR on sg rules
This commit is contained in:
Kubernetes Prow Robot 2021-07-02 23:36:18 -07:00 committed by GitHub
commit 11ade084c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -191,7 +191,6 @@ func (b *BastionModelBuilder) Build(c *fi.ModelBuilderContext) error {
Protocol: fi.String("tcp"),
FromPort: fi.Int64(22),
ToPort: fi.Int64(22),
CIDR: fi.String(sshAccess),
}
if utils.IsIPv6CIDR(sshAccess) {
t.IPv6CIDR = fi.String(sshAccess)