Skip to content

Upstream 2106 - Add use_db_compression for backup database dumps - #28

Open
blaipr wants to merge 1 commit into
ctrliq:develfrom
blaipr:feat/backup-db-compression
Open

Upstream 2106 - Add use_db_compression for backup database dumps#28
blaipr wants to merge 1 commit into
ctrliq:develfrom
blaipr:feat/backup-db-compression

Conversation

@blaipr

@blaipr blaipr commented Aug 12, 2026

Copy link
Copy Markdown

Upstream PR: ansible/awx-operator#2106

SUMMARY

Adds a use_db_compression field to the AWXBackup CRD, controlling pg_dump's built-in compression:

spec:
  use_db_compression: false

Backward compatible. The field defaults to true, which renders an empty string into the command, so the generated pg_dump is byte-identical to today's. Setting it false appends -Z 0, trading backup size for CPU time on the database pod — useful where the dump is already compressed downstream, or where the pod is CPU-constrained.

Cherry-picked cleanly from upstream; not present in this fork. Includes the CRD field and the matching CSV specDescriptors entry.

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • API (AWXBackup CRD), backup role

Adds a use_db_compression field to AWXBackup. It defaults to true, which
renders the pg_dump command unchanged; setting it false appends -Z 0 to
trade backup size for CPU time on the database pod.

Ports ansible/awx-operator#2106.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant