-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat( cluster ): cluster.imageCatalogRef; ImageCatalog support; Times…
…caleDB support (#306) * Added support for imageCatalogRef * Added support for custom ImageCatalog * Added support for TimescaleDB * Alternative postgresql version approach allowing for minor version in the specs Signed-off-by: Itay Grudev <[email protected]> Signed-off-by: Itay Grudev <[email protected]> Co-authored-by: Булат Гафуров <[email protected]> Co-authored-by: Philippe Scorsolini <[email protected]>
- Loading branch information
1 parent
eb2f245
commit e58ae83
Showing
40 changed files
with
664 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
mode: standalone | ||
version: | ||
postgresql: "16" | ||
cluster: | ||
instances: 1 | ||
backups: | ||
|
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,12 @@ | ||
type: postgresql | ||
mode: standalone | ||
version: | ||
major: "16" | ||
timescaledb: "2.15" | ||
cluster: | ||
instances: 1 | ||
imageCatalogRef: | ||
kind: ImageCatalog | ||
name: my-image-catalog | ||
backups: | ||
enabled: false |
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,14 @@ | ||
type: postgresql | ||
mode: standalone | ||
version: | ||
major: "16" | ||
timescaledb: "2.15" | ||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false | ||
imageCatalog: | ||
create: true | ||
images: | ||
- major: 16 | ||
image: my-custom-postgres-image:mytag |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
type: postgis | ||
mode: standalone | ||
version: | ||
postgresql: "16" | ||
postgis: "3.4" | ||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false | ||
enabled: false |
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,9 @@ | ||
type: timescaledb | ||
mode: standalone | ||
version: | ||
postgresql: "15.7" | ||
timescaledb: "2.15" | ||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false |
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
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
18 changes: 18 additions & 0 deletions
18
charts/cluster/templates/image-catalog-timescaledb-ha.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,18 @@ | ||
{{- if eq (include "cluster.useTimescaleDBDefaults" .) "true" -}} | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: ImageCatalog | ||
metadata: | ||
name: {{ include "cluster.fullname" . }}-timescaledb-ha | ||
spec: | ||
images: | ||
- major: 12 | ||
image: timescale/timescaledb-ha:pg15-ts{{ .Values.version.timescaledb }} | ||
- major: 13 | ||
image: timescale/timescaledb-ha:pg15-ts{{ .Values.version.timescaledb }} | ||
- major: 14 | ||
image: timescale/timescaledb-ha:pg15-ts{{ .Values.version.timescaledb }} | ||
- major: 15 | ||
image: timescale/timescaledb-ha:pg15-ts{{ .Values.version.timescaledb }} | ||
- major: 16 | ||
image: timescale/timescaledb-ha:pg16-ts{{ .Values.version.timescaledb }} | ||
{{ end }} |
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,12 @@ | ||
{{ if and .Values.imageCatalog.create (not (empty .Values.imageCatalog.images )) }} | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: ImageCatalog | ||
metadata: | ||
name: {{ include "cluster.fullname" . }} | ||
spec: | ||
images: | ||
{{- range $image := .Values.imageCatalog.images }} | ||
- image: {{ $image.image }} | ||
major: {{ $image.major }} | ||
{{- end }} | ||
{{- end }} |
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
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
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
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/cluster/test/timescale-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: minio-cleanup | ||
status: | ||
succeeded: 1 |
16 changes: 16 additions & 0 deletions
16
charts/cluster/test/timescale-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/timescale |
6 changes: 6 additions & 0 deletions
6
charts/cluster/test/timescale-minio-backup-restore/01-timescale_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: timescale-cluster | ||
status: | ||
readyInstances: 2 |
Oops, something went wrong.