forked from bcgov/common-object-management-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
779 additions
and
106 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
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,7 @@ | ||
apiVersion: v2 | ||
name: postgrescluster | ||
description: A Helm chart for Kubernetes | ||
type: application | ||
# The version below should match the version on the PostgresCluster CRD | ||
version: 5.6.1 | ||
appVersion: 5.6.0 |
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,31 @@ | ||
Thank you for deploying a Crunchy PostgreSQL cluster! | ||
|
||
(((((((((((((((((((((( | ||
(((((((((((((%%%%%%%((((((((((((((( | ||
(((((((((((%%% %%%%(((((((((((( | ||
(((((((((((%%( (((( ( %%%((((((((((( | ||
(((((((((((((%% (( ,(( %%%((((((((((( | ||
(((((((((((((((%% *%%/ %%%%%%%(((((((((( | ||
(((((((((((((((((((%%(( %%%%%%%%%%#(((((%%%%%%%%%%#(((((((((((( | ||
((((((((((((((((((%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%(((((((((((((( | ||
*((((((((((((((((((((%%%%%% /%%%%%%%%%%%%%%%%%%%(((((((((((((((( | ||
(((((((((((((((((((((((%%%/ .%, %%%((((((((((((((((((, | ||
((((((((((((((((((((((% %#((((((((((((((((( | ||
(((((((((((((((%%%%%% #%((((((((((((((((( | ||
((((((((((((((%% %%(((((((((((((((, | ||
((((((((((((%%%#% % %%((((((((((((((( | ||
((((((((((((%. % % #(((((((((((((( | ||
(((((((((((%% % %%* %((((((((((((( | ||
#(###(###(#%% %%% %% %%% #%%#(###(###(# | ||
###########%%%%% /%%%%%%%%%%%%% %% %%%%% ,%%####### | ||
###############%% %%%%%% %%% %%%%%%%% %%##### | ||
################%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %%## | ||
################%% %%%%%%%%%%%%%%%%% %%%% % | ||
##############%# %% (%%%%%%% %%%%%% | ||
#############% %%%%% %%%%%%%%%%% | ||
###########% %%%%%%%%%%% %%%%%%%%% | ||
#########%% %% %%%%%%%%%%%%%%%# | ||
########%% %% %%%%%%%%% | ||
######%% %% %%%%%% | ||
####%%% %%%%% % | ||
%% %%%% |
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 @@ | ||
{{/* Allow for Azure secret information to be stored in a Secret */}} | ||
{{- define "postgres.azure" }} | ||
[global] | ||
{{- if .azure }} | ||
{{- if .azure.account }} | ||
repo{{ add .index 1 }}-azure-account={{ .azure.account }} | ||
{{- end }} | ||
{{- if .azure.key }} | ||
repo{{ add .index 1 }}-azure-key={{ .azure.key }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{/* Allow for GCS secret information to be stored in a Secret */}} | ||
{{- define "postgres.gcs" }} | ||
[global] | ||
{{- if .gcs }} | ||
repo{{ add .index 1 }}-gcs-key=/etc/pgbackrest/conf.d/gcs-key.json | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{/* Allow for S3 secret information to be stored in a Secret */}} | ||
{{- define "postgres.s3" }} | ||
[global] | ||
{{- if .s3 }} | ||
{{- if .s3.key }} | ||
repo{{ add .index 1 }}-s3-key={{ .s3.key }} | ||
{{- end }} | ||
{{- if .s3.keySecret }} | ||
repo{{ add .index 1 }}-s3-key-secret={{ .s3.keySecret }} | ||
{{- end }} | ||
{{- if .s3.keyType }} | ||
repo{{ add .index 1 }}-s3-key-type={{ .s3.keyType }} | ||
{{- end }} | ||
{{- if .s3.encryptionPassphrase }} | ||
repo{{ add .index 1 }}-cipher-pass={{ .s3.encryptionPassphrase }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{- if or .Values.multiBackupRepos .Values.s3 .Values.gcs .Values.azure }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ default .Release.Name .Values.name }}-pgbackrest-secret | ||
type: Opaque | ||
data: | ||
{{- if .Values.multiBackupRepos }} | ||
{{- range $index, $repo := .Values.multiBackupRepos }} | ||
{{- if $repo.s3 }} | ||
{{- $args := dict "s3" $repo.s3 "index" $index }} | ||
s3.conf: |- | ||
{{ include "postgres.s3" $args | b64enc }} | ||
{{- else if $repo.gcs }} | ||
{{- $args := dict "gcs" $repo.gcs "index" $index }} | ||
gcs.conf: |- | ||
{{ include "postgres.gcs" $args | b64enc }} | ||
gcs-key.json: |- | ||
{{ $repo.gcs.key | b64enc }} | ||
{{- else if $repo.azure }} | ||
{{- $args := dict "azure" $repo.azure "index" $index }} | ||
azure.conf: |- | ||
{{ include "postgres.azure" $args | b64enc }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else if .Values.s3 }} | ||
{{- $args := dict "s3" .Values.s3 "index" 0 }} | ||
s3.conf: |- | ||
{{ include "postgres.s3" $args | b64enc }} | ||
{{- else if .Values.gcs }} | ||
{{- $args := dict "gcs" .Values.gcs "index" 0 }} | ||
gcs.conf: |- | ||
{{ include "postgres.gcs" $args | b64enc }} | ||
gcs-key.json: |- | ||
{{ .Values.gcs.key | b64enc }} | ||
{{- else if .Values.azure }} | ||
{{- $args := dict "azure" .Values.azure "index" 0 }} | ||
azure.conf: |- | ||
{{ include "postgres.azure" $args | b64enc }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.