From c7ed72e01e714572e687d55203a1e5268602069b Mon Sep 17 00:00:00 2001 From: eberlep Date: Tue, 27 Aug 2024 10:20:57 +0200 Subject: [PATCH] Use the same value when installing and uninstalling (#573) --- pkg/etcdmanager/etcdmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/etcdmanager/etcdmanager.go b/pkg/etcdmanager/etcdmanager.go index 2a5e53b8..505fb482 100644 --- a/pkg/etcdmanager/etcdmanager.go +++ b/pkg/etcdmanager/etcdmanager.go @@ -498,7 +498,7 @@ func (m *EtcdManager) UninstallEtcd() error { matchingLabels := client.MatchingLabels{ pg.PartitionIDLabelName: m.options.PartitionID, - pg.ManagedByLabelName: pg.ManagedByLabelValue, + pg.ManagedByLabelName: m.options.PostgresletFullname, etcdComponentLabelName: etcdComponentLabelValue, } deleteAllOpts := []client.DeleteAllOfOption{