Skip to content

Commit

Permalink
fix: 🐛 fix compression on cnpg clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-tobi committed Oct 16, 2024
1 parent 4118bac commit 5998632
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/gitlab/templates/pg-cluster-gitlab.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ spec:
secretAccessKey:
name: "{{ dsc.global.backup.s3.credentials.name }}"
key: "{{ dsc.global.backup.s3.credentials.secretAccessKey.key }}"
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% if dsc.global.backup.cnpg.compression != 'none' %}
data:
compression: "{{ dsc.global.backup.cnpg.compression }}"
wal:
compression: "{{ dsc.global.backup.cnpg.compression }}"
{% endif %}
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% else %}
backup: null
{% endif %}
2 changes: 1 addition & 1 deletion roles/harbor/templates/pg-cluster-harbor.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ spec:
secretAccessKey:
name: "{{ dsc.global.backup.s3.credentials.name }}"
key: "{{ dsc.global.backup.s3.credentials.secretAccessKey.key }}"
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% if dsc.global.backup.cnpg.compression != 'none' %}
data:
compression: "{{ dsc.global.backup.cnpg.compression }}"
wal:
compression: "{{ dsc.global.backup.cnpg.compression }}"
{% endif %}
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% else %}
backup: null
{% endif %}
2 changes: 1 addition & 1 deletion roles/keycloak/templates/pg-cluster-keycloak.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ spec:
secretAccessKey:
name: "{{ dsc.global.backup.s3.credentials.name }}"
key: "{{ dsc.global.backup.s3.credentials.secretAccessKey.key }}"
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% if dsc.global.backup.cnpg.compression != 'none' %}
data:
compression: "{{ dsc.global.backup.cnpg.compression }}"
wal:
compression: "{{ dsc.global.backup.cnpg.compression }}"
{% endif %}
retentionPolicy: "{{ dsc.global.backup.cnpg.retentionPolicy }}"
{% else %}
backup: null
{% endif %}

0 comments on commit 5998632

Please sign in to comment.