Skip to content

Commit 8d8fb20

Browse files
committed
fix namespaces for issuer and cert location - always match cluster
1 parent 49fefce commit 8d8fb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/naming/names.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@ func UpgradeCheckConfigMap() metav1.ObjectMeta {
626626
// CAIssuer returns the ObjectMeta for the CA Issuer used by cert-manager.
627627
func CAIssuer(cluster *v1beta1.PostgresCluster) metav1.ObjectMeta {
628628
return metav1.ObjectMeta{
629-
Namespace: config.PGONamespace(),
629+
Namespace: cluster.Namespace,
630630
Name: cluster.Name + "-ca-issuer",
631631
}
632632
}
633633

634634
// TLSIssuer returns the ObjectMeta for the TLS Issuer used by cert-manager.
635635
func TLSIssuer(cluster *v1beta1.PostgresCluster) metav1.ObjectMeta {
636636
return metav1.ObjectMeta{
637-
Namespace: config.PGONamespace(),
637+
Namespace: cluster.Namespace,
638638
Name: cluster.Name + "-tls-issuer",
639639
}
640640
}

0 commit comments

Comments
 (0)