From d7f3d2465688efb3910e63c1350bb2c8e45b121b Mon Sep 17 00:00:00 2001 From: Veronika Fisarova Date: Mon, 11 Sep 2023 14:42:23 +0200 Subject: [PATCH] Add the basic TLS structure and helpers Signed-off-by: Veronika Fisarova --- modules/common/tls/tls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/common/tls/tls.go b/modules/common/tls/tls.go index 83015f6d..7f519931 100644 --- a/modules/common/tls/tls.go +++ b/modules/common/tls/tls.go @@ -47,8 +47,8 @@ func NewTLS(secretName string, caSecretName []string, disableNonTLSListeners boo // GetCASecretNameFromIssuer retrieves the CASecretName from an issuer object. func GetCASecretNameFromIssuer(issuer *certmanager.Issuer) []string { - if issuer.CAIssuer != nil { - return []string{issuer.CAIssuer.SecretName} + if issuer.Spec.CA != nil { + return []string{issuer.Spec.CA.SecretName} } return []string{} }