Skip to content

Commit

Permalink
Don't backup Build objects
Browse files Browse the repository at this point in the history
The information required by OSBS is fully stored in BuildConfig and
ImageStream objects. Additionally, the Build objects are only restored
if they don't have a BuildConfig associated with them. Those are scratch
and isolated builds which we care very little about backing up in OSBS.

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
  • Loading branch information
lcarva committed Apr 16, 2018
1 parent 237a4d6 commit 37bbcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osbs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
SECRETS_PATH = "/var/run/secrets/atomic-reactor"

# Backup/restore
BACKUP_RESOURCES = ('buildconfigs', 'imagestreams', 'builds',)
BACKUP_RESOURCES = ('buildconfigs', 'imagestreams',)

CLI_LIST_BUILDS_DEFAULT_COLS = ["name", "status", "image"]
CLI_WATCH_BUILDS_DEFAULT_COLS = ["changetype", "status", "created", "name"]
Expand Down

0 comments on commit 37bbcab

Please sign in to comment.