-
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
1 parent
64e50c1
commit 319b9bc
Showing
11 changed files
with
200 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
name: cnpg-cluster | ||
type: application | ||
version: 0.6.2 | ||
appVersion: "0.1.0" | ||
version: 0.7.0 | ||
appVersion: "1.25.0" | ||
description: A Helm Chart to deploy easily a CNPG cluster | ||
home: https://cloudnative-pg.io | ||
deprecated: false | ||
|
@@ -16,6 +16,7 @@ dependencies: | |
condition: cnpg-operator.enabled | ||
sources: | ||
- https://github.com/this-is-tobi/helm-charts | ||
- https://artifacthub.io/packages/helm/cloudnative-pg/cloudnative-pg | ||
maintainers: | ||
- name: this-is-tobi | ||
email: [email protected] | ||
|
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,13 @@ | ||
{{- if and .Values.imageCredentials.username .Values.imageCredentials.password }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "template.fullname" . }}-pullsecret | ||
labels: {{- include "template.labels" . | nindent 4 }} | ||
{{- if .Values.annotations }} | ||
annotations: {{- toYaml .Values.annotations | nindent 4 }} | ||
{{- end }} | ||
type: kubernetes.io/dockerconfigjson | ||
data: | ||
.dockerconfigjson: {{ template "template.imagePullSecret" . }} | ||
{{- end }} |
30 changes: 30 additions & 0 deletions
30
charts/cnpg-cluster/templates/pg-cluster-secret-creds.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,30 @@ | ||
kind: Secret | ||
apiVersion: v1 | ||
type: kubernetes.io/basic-auth | ||
metadata: | ||
name: {{ printf "%s-%s" (include "template.fullname" .) "admin" }} | ||
labels: {{- include "template.labels" . | nindent 4 }} | ||
{{- if .Values.annotations }} | ||
annotations: {{- toYaml .Values.annotations | nindent 4 }} | ||
{{- end }} | ||
data: | ||
username: {{ "postgres" | b64enc }} | ||
password: {{ (.Values.postgresPassword | default (randAlphaNum 24)) | b64enc }} | ||
|
||
--- | ||
kind: Secret | ||
apiVersion: v1 | ||
type: kubernetes.io/basic-auth | ||
metadata: | ||
name: {{ printf "%s-%s" (include "template.fullname" .) "app" }} | ||
labels: | ||
{{- include "template.labels" . | nindent 4 }} | ||
{{- if .Values.annotations }} | ||
annotations: | ||
{{- with .Values.annotations }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
data: | ||
username: {{ (.Values.username | default .Values.fullnameOverride | default .Values.nameOverride | default .Release.Name) | b64enc }} | ||
password: {{ (.Values.password | default (randAlphaNum 24)) | b64enc }} |
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
Oops, something went wrong.