mirror of https://github.com/k3s-io/k3s
Merge pull request #76223 from frankgreco/automated-cherry-pick-of-#76216-upstream-release-1.14
Automated cherry pick of #76216: ensuring that logic is checking for differences in listenerpull/564/head
commit
8c00490d9b
|
@ -1112,10 +1112,10 @@ func (c *Cloud) ensureLoadBalancer(namespacedName types.NamespacedName, loadBala
|
||||||
|
|
||||||
found := -1
|
found := -1
|
||||||
for i, expected := range listeners {
|
for i, expected := range listeners {
|
||||||
if elbProtocolsAreEqual(actual.Protocol, expected.Protocol) {
|
if !elbProtocolsAreEqual(actual.Protocol, expected.Protocol) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if elbProtocolsAreEqual(actual.InstanceProtocol, expected.InstanceProtocol) {
|
if !elbProtocolsAreEqual(actual.InstanceProtocol, expected.InstanceProtocol) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if aws.Int64Value(actual.InstancePort) != aws.Int64Value(expected.InstancePort) {
|
if aws.Int64Value(actual.InstancePort) != aws.Int64Value(expected.InstancePort) {
|
||||||
|
@ -1124,7 +1124,7 @@ func (c *Cloud) ensureLoadBalancer(namespacedName types.NamespacedName, loadBala
|
||||||
if aws.Int64Value(actual.LoadBalancerPort) != aws.Int64Value(expected.LoadBalancerPort) {
|
if aws.Int64Value(actual.LoadBalancerPort) != aws.Int64Value(expected.LoadBalancerPort) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if awsArnEquals(actual.SSLCertificateId, expected.SSLCertificateId) {
|
if !awsArnEquals(actual.SSLCertificateId, expected.SSLCertificateId) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
found = i
|
found = i
|
||||||
|
|
Loading…
Reference in New Issue