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>
- Loading branch information
1 parent
42d77f4
commit c9793cc
Showing
22 changed files
with
523 additions
and
60 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{- define "cluster.externalSourceCluster" -}} | ||
{{- $name := first . -}} | ||
{{- $config := last . -}} | ||
- name: {{ first . }} | ||
connectionParameters: | ||
host: {{ $config.host | quote }} | ||
port: {{ $config.port | quote }} | ||
user: {{ $config.username | quote }} | ||
{{- with $config.database }} | ||
dbname: {{ . | quote }} | ||
{{- end }} | ||
sslmode: {{ $config.sslMode | quote }} | ||
{{- if $config.passwordSecret.name }} | ||
password: | ||
name: {{ $config.passwordSecret.name }} | ||
key: {{ $config.passwordSecret.key }} | ||
{{- end }} | ||
{{- if $config.sslKeySecret.name }} | ||
sslKey: | ||
name: {{ $config.sslKeySecret.name }} | ||
key: {{ $config.sslKeySecret.key }} | ||
{{- end }} | ||
{{- if $config.sslCertSecret.name }} | ||
sslCert: | ||
name: {{ $config.sslCertSecret.name }} | ||
key: {{ $config.sslCertSecret.key }} | ||
{{- end }} | ||
{{- if $config.sslRootCertSecret.name }} | ||
sslRootCert: | ||
name: {{ $config.sslRootCertSecret.name }} | ||
key: {{ $config.sslRootCertSecret.key }} | ||
{{- end }} | ||
{{- end }} |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-import/00-source-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: source-paradedb | ||
status: | ||
readyInstances: 1 |
9 changes: 9 additions & 0 deletions
9
charts/paradedb/test/postgresql-import/00-source-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,9 @@ | ||
type: postgresql | ||
mode: "standalone" | ||
cluster: | ||
instances: 1 | ||
superuserSecret: source-paradedb-superuser | ||
storage: | ||
size: 256Mi | ||
backups: | ||
enabled: false |
8 changes: 8 additions & 0 deletions
8
charts/paradedb/test/postgresql-import/00-source-superuser-password.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: v1 | ||
kind: Secret | ||
metadata: | ||
name: source-paradedb-superuser | ||
type: Opaque | ||
data: | ||
username: "cG9zdGdyZXM=" | ||
password: "cG9zdGdyZXM=" |
6 changes: 6 additions & 0 deletions
6
charts/paradedb/test/postgresql-import/01-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 |
Oops, something went wrong.