Skip to content

Commit 0622cc6

Browse files
Alevskcniackz
andauthored
fix: parseTenantCertificates was ignoring cert-manager secrets (#1929)
Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com> Co-authored-by: Cesar Celis Hernandez <celis.hernandez.cesar@gmail.com>
1 parent 663a5b1 commit 0622cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operatorapi/tenants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ func parseTenantCertificates(ctx context.Context, clientSet K8sClientI, namespac
597597
if err != nil {
598598
return nil, err
599599
}
600-
if secret.Type == "kubernetes.io/tls" || secret.Type == "cert-manager.io/v1alpha2" {
600+
if secret.Type == "kubernetes.io/tls" || secret.Type == "cert-manager.io/v1" || secret.Type == "cert-manager.io/v1alpha2" {
601601
publicKey = "tls.crt"
602602
}
603603
// Extract public key from certificate TLS secret

0 commit comments

Comments
 (0)