@@ -23,7 +23,6 @@ import (
2323
2424 "github.com/crunchydata/postgres-operator/internal/config"
2525 "github.com/crunchydata/postgres-operator/internal/kubeapi"
26- "github.com/crunchydata/postgres-operator/internal/util"
2726 crv1 "github.com/crunchydata/postgres-operator/pkg/apis/crunchydata.com/v1"
2827
2928 log "github.com/sirupsen/logrus"
@@ -47,6 +46,7 @@ const (
4746 configConfigMapSuffix = "config"
4847 leaderConfigMapSuffix = "leader"
4948 failoverConfigMapSuffix = "failover"
49+ syncConfigMapSuffix = "sync"
5050)
5151
5252func Delete (request Request ) {
@@ -232,6 +232,8 @@ func removeClusterConfigmaps(request Request) {
232232 // next, the name of the general configuration settings configmap, which is
233233 // "`clusterName`-config"
234234 fmt .Sprintf ("%s-%s" , request .ClusterName , configConfigMapSuffix ),
235+ // next, if there is a synchronous replication configmap, clean that up
236+ fmt .Sprintf ("%s-%s" , request .ClusterName , syncConfigMapSuffix ),
235237 // finally, the name of the failover configmap, which is
236238 // "`clusterName`-failover"
237239 fmt .Sprintf ("%s-%s" , request .ClusterName , failoverConfigMapSuffix ),
0 commit comments