mirror of https://github.com/k3s-io/k3s
Merge pull request #63572 from haz-mat/aws-lb-sg-scope-icmp
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>. scope AWS LoadBalancer security group ICMP rules to spec.loadBalancerSourceRanges /sig aws **What this PR does / why we need it**: Make the client CIDR ranges for MTU consistent with what [the documentation appears to describe](https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer), where the ranges should be equal to `spec.loadBalancerSourceRanges` if supplied. **Which issue(s) this PR fixes**: Fixes #63564 **Release note**: ```release-note scope AWS LoadBalancer security group ICMP rules to spec.loadBalancerSourceRanges ```pull/8/head
commit
fc89a80934
|
@ -3533,7 +3533,7 @@ func (c *Cloud) EnsureLoadBalancer(ctx context.Context, clusterName string, apiS
|
||||||
IpProtocol: aws.String("icmp"),
|
IpProtocol: aws.String("icmp"),
|
||||||
FromPort: aws.Int64(3),
|
FromPort: aws.Int64(3),
|
||||||
ToPort: aws.Int64(4),
|
ToPort: aws.Int64(4),
|
||||||
IpRanges: []*ec2.IpRange{{CidrIp: aws.String("0.0.0.0/0")}},
|
IpRanges: ec2SourceRanges,
|
||||||
}
|
}
|
||||||
|
|
||||||
permissions.Insert(permission)
|
permissions.Insert(permission)
|
||||||
|
|
Loading…
Reference in New Issue