Skip to content

Commit

Permalink
disable backups for dev and test
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Oct 18, 2024
1 parent 95e95c3 commit e4f1dff
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/environments/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ postgres:
limits:
cpu: 100m
memory: 512Mi

# -------- backups ---------
pgBackRestConfig:
repos: ~
4 changes: 4 additions & 0 deletions .github/environments/values.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ postgres:
limits:
cpu: 100m
memory: 512Mi

# -------- backups ---------
pgBackRestConfig:
repos: ~
4 changes: 2 additions & 2 deletions charts/coms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: common-object-management-service
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5
kubeVersion: ">= 1.13.0"
description: A microservice for managing access control to S3 Objects
# A chart can be either an 'application' or a 'library' chart.
Expand All @@ -28,7 +28,7 @@ sources:
- https://github.com/bcgov/common-object-management-service
dependencies:
- name: postgrescluster
version: 0.1.4
version: 0.1.5
repository: "file://../postgres"
condition: postgres.enabled
alias: postgres
Expand Down
2 changes: 1 addition & 1 deletion charts/coms/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,4 @@ postgres:

# -------- backups ---------
pgBackRestConfig:
repos: {}
repos: ~
2 changes: 1 addition & 1 deletion charts/postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: postgrescluster
description: A Helm chart for Kubernetes
type: application
# The version below should match the version on the PostgresCluster CRD
version: 0.1.4
version: 0.1.5
appVersion: 5.6.0
2 changes: 2 additions & 0 deletions charts/postgres/templates/pgbackrest-s3-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

{{- if .Values.pgBackRestConfig.repos }}
{{- range $index, $repo := .Values.pgBackRestConfig.repos }}
{{- if $repo.s3 }}
{{- $secretExists := (lookup "v1" "Secret" $.Release.Namespace "pgbackrest-s3" ) }}
Expand All @@ -20,3 +21,4 @@ stringData:
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit e4f1dff

Please sign in to comment.