Skip to content

Commit

Permalink
Revert some changes
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Nov 30, 2021
1 parent a1c972c commit 621f04d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/checlusterrestore/backup_data_restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ func cleanPreviousInstallation(rctx *RestoreContext, dataDir string) (bool, erro
cheFlavor := deploy.DefaultCheFlavor(rctx.cheCR)

cheNameRequirement, _ := labels.NewRequirement(deploy.KubernetesNameLabelKey, selection.Equals, []string{cheFlavor})
cheInstanceRequirement, _ := labels.NewRequirement(deploy.KubernetesInstanceLabelKey, selection.Equals, []string{cheFlavor})
skipBackupObjectsRequirement, _ := labels.NewRequirement(deploy.KubernetesPartOfLabelKey, selection.NotEquals, []string{checlusterbackup.BackupCheEclipseOrg})

cheResourcesLabelSelector := labels.NewSelector().Add(*cheNameRequirement).Add(*skipBackupObjectsRequirement)
cheResourcesLabelSelector := labels.NewSelector().Add(*cheInstanceRequirement).Add(*cheNameRequirement).Add(*skipBackupObjectsRequirement)
cheResourcesListOptions := &client.ListOptions{
LabelSelector: cheResourcesLabelSelector,
Namespace: rctx.namespace,
Expand Down

0 comments on commit 621f04d

Please sign in to comment.