Skip to content

Commit

Permalink
Add the basic TLS structure and helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Veronika Fisarova <[email protected]>
  • Loading branch information
Deydra71 committed Sep 11, 2023
1 parent c8a1b13 commit d7f3d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/common/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down

0 comments on commit d7f3d24

Please sign in to comment.