Skip to content

Commit

Permalink
reading POSTGRES_UPGRADE_DELETE_BACKUP from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunandadadi committed May 29, 2024
1 parent 1f11157 commit 5013ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/quay/quayregistry_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ func (r *QuayRegistryReconciler) checkPostgresUpgradeStatus(
log.Error(err, "could not remove owner reference from old postgres pvc")
}

// If user has set POSTGRES_UPGRADE_RETAIN_BACKUP=true, then we should not delete the old PVC
if os.Getenv("POSTGRES_UPGRADE_RETAIN_BACKUP") == "true" {
// If user has set POSTGRES_UPGRADE_DELETE_BACKUP=false, then we should not delete the old PVC
if os.Getenv("POSTGRES_UPGRADE_DELETE_BACKUP") == "false" {
continue
}

Expand Down

0 comments on commit 5013ce2

Please sign in to comment.