I have a ClusterIssuer that is expecting secretName, I see in the ClusterIssuer spec, I can specify the secretName:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: postgres-operator-ca-certificate-cluster-issuer
spec:
ca:
secretName: postgres-operator-ca-certificate # <---- Here
but how to provide the reference to the secret namespace? This secret is created using Certificate:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: postgres-operator-self-signed-ca-certificate
namespace: postgres # <---- This namespace can not be changed to cert-manager
spec:
isCA: true
commonName: postgres-operator-ca-certificate
secretName: postgres-operator-ca-certificate
issuerRef:
name: postgres-operator-selfsigned-clusterissuer
kind: ClusterIssuer
As this is namespaced is the suggestion is to use Issuer instead of ClusterIssuer? Does ClusterIssuer by default look in the cert-manager namespace?