Skip to content

Commit 46aea51

Browse files
flamingdumpsterJeff McCormick
authored andcommitted
Fix label on rmdata for pgpool that excludes pgpool deployments (CrunchyData#827)
* Alter config.toml, remove some unnecessary files (CrunchyData#556) * Update README (CrunchyData#573) * add regexp to check usernames passed into create user command to prevent special chars from being passed in * updating README links for documentation * fix example/envs.sh: use CO_NAMESPACE (CrunchyData#613) Signed-off-by: Mathis Raguin <mathis.raguin@epita.fr> * create stale.yml * Fix label used during delete of pgpool resources * Fix previous merge issue with file
1 parent 1fa8ca6 commit 46aea51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/clusterservice/clusterimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ func createDeleteDataTasks(clusterName string, storageSpec crv1.PgStorageSpec, d
990990
var err error
991991

992992
//dont include pgpool or pgbouncer deployments
993-
selector := config.LABEL_PG_CLUSTER + "=" + clusterName + "," + config.LABEL_PGBACKUP + "!=true," + config.LABEL_PGPOOL + "!=true," + config.LABEL_PGBOUNCER + "!=true"
993+
selector := config.LABEL_PG_CLUSTER + "=" + clusterName + "," + config.LABEL_PGBACKUP + "!=true," + config.LABEL_PGPOOL_POD + "!=true," + config.LABEL_PGBOUNCER + "!=true"
994994
log.Debugf("selector for delete is %s", selector)
995995
deployments, err := kubeapi.GetDeployments(apiserver.Clientset, selector, ns)
996996
if err != nil {

0 commit comments

Comments
 (0)