forked from cloudnative-pg/charts
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> Co-authored-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> ci: AWS EKS LocalStack Tests (#14) Co-authored-by: Itay Grudev <itay.grudev@essentim.com> Co-authored-by: Itay Grudev <itay+github.com@grudev.com> Updated documentation workflows and cleanup (#18) Revert "Add postgresql default to tests" This reverts commit a9f340d. Add repository_dispatch Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> chore: Configure repository for ParadeDB (#15) Co-authored-by: Itay Grudev <itay+github.com@grudev.com> chore: Create artifacthub-repo.yml (#20) Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> Put artifacthub-repo.yml in the right location Bug Fix: Tests (#21) Renamed chart to `paradedb-cluster` (#22) Co-authored-by: Philippe Noël <philippemnoel@gmail.com> Rm .DS_Store Remove extra HTML tag Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> Remove repository_dispatch Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> chore: Rename paradedb-cluster to paradedb (#28) chore: Try with adding missing -cluster (#33) chore: Final Cleanup (#34) chore: Remove PostGIS and Timescale (#35) Using the default UID/GID 999 from the postgres docker image (#26) Co-authored-by: Philippe Noël <philippemnoel@gmail.com> chore: Update README and Schema (#37) Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> chore(deps): pin sigstore/cosign-installer action to 4959ce0 (cloudnative-pg#403) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Rm pgvectorscale (#39) Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> feat: Add GitHub Actions Workflow to check for typos (#40) Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> Co-authored-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> chore(deps): update kyverno/action-install-chainsaw action to v0.2.11 (cloudnative-pg#410) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Rename the default database from app to paradedb (#41) Co-authored-by: Philippe Noël <philippemnoel@gmail.com> docs: Clarify the docs (#42) Update Depot Revert "Update Depot" This reverts commit cb85b81. feat: Add `pg_cron` and Postgis (#44) Signed-off-by: Philippe Noël <21990816+philippemnoel@users.noreply.github.com> chore: Use the new 0.11.0 release (#47) feat: Enable monitoring via Prometheus and Grafana (rebased) (#48) Rm extra files Remove duplicate block in README
- Loading branch information
1 parent
ad0d1f4
commit f7ceaa6
Showing
33 changed files
with
756 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/00-minio_cleanup-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-test | ||
status: | ||
succeeded: 1 |
16 changes: 16 additions & 0 deletions
16
charts/paradedb/test/postgresql-minio-backup-restore/00-minio_cleanup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: minio-cleanup | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: minio-cleanup | ||
image: minio/mc | ||
command: ['sh', '-c'] | ||
args: | ||
- | | ||
mc alias set myminio https://minio.minio.svc.cluster.local minio minio123 | ||
mc rm --recursive --force myminio/mybucket/paradedb |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/01-standalone_cluster-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: import-paradedb | ||
status: | ||
readyInstances: 2 |
29 changes: 29 additions & 0 deletions
29
charts/paradedb/test/postgresql-minio-backup-restore/01-standalone_cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
type: paradedb | ||
mode: standalone | ||
version: | ||
major: "17" | ||
paradedb: "0.14.0" | ||
cluster: | ||
instances: 2 | ||
storage: | ||
size: 256Mi | ||
|
||
backups: | ||
enabled: true | ||
provider: s3 | ||
endpointURL: "https://minio.minio.svc.cluster.local" | ||
endpointCA: | ||
name: kube-root-ca.crt | ||
key: ca.crt | ||
wal: | ||
encryption: "" | ||
data: | ||
encryption: "" | ||
s3: | ||
bucket: "mybucket" | ||
path: "/paradedb/v1" | ||
accessKey: "minio" | ||
secretKey: "minio123" | ||
region: "local" | ||
scheduledBackups: [] | ||
retentionPolicy: "30d" |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/02-data_write-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-write | ||
status: | ||
succeeded: 1 |
23 changes: 23 additions & 0 deletions
23
charts/paradedb/test/postgresql-minio-backup-restore/02-data_write.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-write | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: data-write | ||
env: | ||
- name: DB_URI | ||
valueFrom: | ||
secretKeyRef: | ||
name: standalone-paradedb-superuser | ||
key: uri | ||
image: alpine:3.19 | ||
command: ['sh', '-c'] | ||
args: | ||
- | | ||
apk --no-cache add postgresql-client | ||
DB_URI=$(echo $DB_URI | sed "s|/\*|/|" ) | ||
psql "$DB_URI" -c "CREATE TABLE mygoodtable (id serial PRIMARY KEY);" |
8 changes: 8 additions & 0 deletions
8
charts/paradedb/test/postgresql-minio-backup-restore/03-backup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Backup | ||
metadata: | ||
name: post-init-backup | ||
spec: | ||
method: barmanObjectStore | ||
cluster: | ||
name: standalone-paradedb |
10 changes: 10 additions & 0 deletions
10
charts/paradedb/test/postgresql-minio-backup-restore/03-backup_completed-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Backup | ||
metadata: | ||
name: post-init-backup | ||
spec: | ||
cluster: | ||
name: standalone-paradedb | ||
method: barmanObjectStore | ||
status: | ||
phase: completed |
10 changes: 10 additions & 0 deletions
10
charts/paradedb/test/postgresql-minio-backup-restore/03-backup_running-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Backup | ||
metadata: | ||
name: post-init-backup | ||
spec: | ||
cluster: | ||
name: standalone-paradedb | ||
method: barmanObjectStore | ||
status: | ||
phase: running |
27 changes: 27 additions & 0 deletions
27
charts/paradedb/test/postgresql-minio-backup-restore/03-checkpoint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: backup-checkpoint | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: create-checkpoint | ||
env: | ||
- name: DB_URI | ||
valueFrom: | ||
secretKeyRef: | ||
name: standalone-paradedb-superuser | ||
key: uri | ||
image: alpine:3.19 | ||
command: ['sh', '-c'] | ||
args: | ||
- | | ||
apk --no-cache add postgresql-client | ||
DB_URI=$(echo $DB_URI | sed "s|/\*|/|" ) | ||
END_TIME=$(( $(date +%s) + 30 )) | ||
while [ $(date +%s) -lt $END_TIME ]; do | ||
psql "$DB_URI" -c "SELECT pg_switch_wal();CHECKPOINT;" | ||
sleep 5 | ||
done |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/04-post_backup_data_write-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: paradedb-enterprise-index-test | ||
status: | ||
succeeded: 1 |
57 changes: 57 additions & 0 deletions
57
charts/paradedb/test/postgresql-minio-backup-restore/04-post_backup_data_write.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: configmap-creator-sa | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: configmap-creator | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["create"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: configmap-creator-binding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: configmap-creator-sa | ||
roleRef: | ||
kind: Role | ||
name: configmap-creator | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-write-post-backup | ||
spec: | ||
template: | ||
spec: | ||
serviceAccountName: configmap-creator-sa | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: data-write | ||
env: | ||
- name: DB_URI | ||
valueFrom: | ||
secretKeyRef: | ||
name: standalone-paradedb-superuser | ||
key: uri | ||
- name: NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
image: alpine:3.19 | ||
command: ['sh', '-c'] | ||
args: | ||
- | | ||
apk --no-cache add postgresql-client kubectl coreutils | ||
DB_URI=$(echo $DB_URI | sed "s|/\*|/|" ) | ||
DATE_NO_BAD_TABLE=$(date --rfc-3339=ns) | ||
sleep 30 | ||
psql "$DB_URI" -c "CREATE TABLE mybadtable (id serial PRIMARY KEY);" | ||
kubectl create configmap date-no-bad-table --from-literal=date="$DATE_NO_BAD_TABLE" |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/05-recovery_backup_cluster-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: pg-basebackup-paradedb | ||
status: | ||
readyInstances: 2 |
48 changes: 48 additions & 0 deletions
48
charts/paradedb/test/postgresql-minio-backup-restore/05-recovery_backup_cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
type: postgresql | ||
mode: recovery | ||
|
||
cluster: | ||
instances: 2 | ||
storage: | ||
size: 256Mi | ||
|
||
recovery: | ||
method: backup | ||
backupName: "post-init-backup" | ||
provider: s3 | ||
endpointURL: "https://minio.minio.svc.cluster.local" | ||
endpointCA: | ||
name: kube-root-ca.crt | ||
key: ca.crt | ||
wal: | ||
encryption: "" | ||
data: | ||
encryption: "" | ||
s3: | ||
bucket: "mybucket" | ||
path: "/postgresql-minio-backup-restore/v1" | ||
accessKey: "minio" | ||
secretKey: "minio123" | ||
region: "local" | ||
scheduledBackups: [] | ||
retentionPolicy: "30d" | ||
|
||
backups: | ||
enabled: true | ||
provider: s3 | ||
endpointURL: "https://minio.minio.svc.cluster.local" | ||
endpointCA: | ||
name: kube-root-ca.crt | ||
key: ca.crt | ||
wal: | ||
encryption: "" | ||
data: | ||
encryption: "" | ||
s3: | ||
bucket: "mybucket" | ||
path: "/postgresql-minio-backup-restore/v2" | ||
accessKey: "minio" | ||
secretKey: "minio123" | ||
region: "local" | ||
scheduledBackups: [] | ||
retentionPolicy: "30d" |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-minio-backup-restore/06-data_test-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-test-schemaonly | ||
status: | ||
succeeded: 1 |
24 changes: 24 additions & 0 deletions
24
charts/paradedb/test/postgresql-minio-backup-restore/06-data_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: data-test-schemaonly | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: data-test | ||
env: | ||
- name: DB_URI | ||
valueFrom: | ||
secretKeyRef: | ||
name: import-schemaonly-paradedb-superuser | ||
key: uri | ||
image: alpine:3.19 | ||
command: ['sh', '-c'] | ||
args: | ||
- | | ||
apk --no-cache add postgresql-client | ||
DB_URI=$(echo $DB_URI | sed "s|/\*|/|" ) | ||
test "$(psql "${DB_URI}mygooddb" -t -c 'SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $$mygoodtable$$)' --csv -q 2>/dev/null)" = "t" | ||
test "$(psql "${DB_URI}mygooddb" -t -c 'SELECT EXISTS (SELECT FROM mygoodtable WHERE id = 314159265)' --csv -q 2>/dev/null)" = "f" |
6 changes: 6 additions & 0 deletions
6
...aradedb/test/postgresql-minio-backup-restore/07-recovery_object_store_cluster-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: recovery-object-store-paradedb | ||
status: | ||
readyInstances: 2 |
Oops, something went wrong.