Skip to content

Commit 1645277

Browse files
authored
check sslpolicy on both sdkLS and resLS (#3196)
1 parent 5317c41 commit 1645277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/deploy/elbv2/listener_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func (m *defaultListenerManager) updateSDKListenerWithSettings(ctx context.Conte
158158
func (m *defaultListenerManager) updateSDKListenerWithExtraCertificates(ctx context.Context, resLS *elbv2model.Listener,
159159
sdkLS ListenerWithTags, isNewSDKListener bool) error {
160160
// if TLS is not supported, we shouldn't update
161-
if sdkLS.Listener.SslPolicy == nil {
162-
m.logger.V(1).Info("SDK Listener doesn't have SSL Policy set, we skip updating extra certs for non-TLS listener.")
161+
if resLS.Spec.SSLPolicy == nil && sdkLS.Listener.SslPolicy == nil {
162+
m.logger.V(1).Info("Res and Sdk Listener don't have SSL Policy set, we skip updating extra certs for non-TLS listener.")
163163
return nil
164164
}
165165

0 commit comments

Comments
 (0)