Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "PLAT-453: Update cloudnative-pg helm chart to save backups to shared bucket" #5

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/cloudnative-pg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cloudnative-pg
description: Create a Postgresql database cluster on AWS EKS using cloudnative-pg.io and any required AWS resources via crossplane.io.
type: application
version: 0.1.1-backup-dev-2
version: 0.1.1
kubeVersion: ">=1.24.0-0"
keywords:
- postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::{{ .Values.aws.s3Backups.bucketName }}",
"arn:aws:s3:::{{ .Values.aws.s3Backups.bucketName }}/{{.Values.aws.resourcePrefix}}{{.Values.stackId}}"
"arn:aws:s3:::{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}",
"arn:aws:s3:::{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}/*"
]
},
{
Expand All @@ -37,10 +37,7 @@ spec:
],
"Condition": {
"ForAnyValue:StringLike": {
"kms:ResourceAliases": [
"alias/{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}",
"alias/{{ .Values.aws.s3Backups.bucketKmsKeyAlias }}"
]
"kms:ResourceAliases": "alias/{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ spec:
name: postgres-app
key: port
- name: S3PATH
value: "s3://{{.Values.aws.s3Backups.bucketName}}/{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}/stegostore/"
- name: KMS_KEY_ID
value: {{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}
value: "s3://{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}/stegostore/"
- name: PGHOST
value: "postgres-rw"
restartPolicy: Never
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ spec:
command: ["bash", "/stegosweep.sh"]
env:
- name: S3_BUCKET_NAME
value: {{ .Values.aws.s3Backups.bucketName }}
value: "{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}"
- name: S3_PREFIX
value: "{{ .Values.aws.resourcePrefix }}{{ .Values.stackId }}/stegostore"
value: "stegostore"
- name: DAYS_RETENTION_DAILY
value: {{ .Values.stegosweep.daysRetentionDaily | quote }}
- name: DAYS_RETENTION_HOURLY
Expand Down
5 changes: 1 addition & 4 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ aws:
rolePath: /my-role-path/
policyPath: /my-policy-path/
permissionsBoundary: arn:aws:iam::123456789012:policy/my-policy-path/my-policy-name
s3Backups:
bucketName: backup-bucket-name
bucketKmsKeyAlias: database-backup-bucket-key
cluster:
imageName: ghcr.io/cloudnative-pg/postgresql:15.3@sha256:10fa87e8fbf7f1d7d6be3124ef364068e5844e825b17649bc0b2efbab4b54f69
instances: 2
Expand Down Expand Up @@ -47,7 +44,7 @@ stegostore:
schedule: "0 * * * *"
concurrencyPolicy: Forbid
imageName: portswigger-cloud/stegostore
imageDigest: sha256:3e4771a813ed530a27b5ac6b009e6961a8bc67f9b9e1b386c09bbb60dd05211d
imageDigest: sha256:c3ee6874873ad41081e95eae17322c6b9424503098262ca0641cf1aa21bf7c08
stegosweep:
enabled: true
schedule: "30 1 * * *"
Expand Down
Loading