feat(penpot) add db-init.yaml template and cleanup the values chart
This commit is contained in:
parent
d838d8bcac
commit
a4af310d8b
6 changed files with 39 additions and 4 deletions
|
@ -4,7 +4,7 @@ maintainers:
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: 1.19.3
|
appVersion: 1.19.3
|
||||||
version: 2.0.2
|
version: 2.0.3
|
||||||
description: Penpot is a design and prototyping platform for teams and individuals.
|
description: Penpot is a design and prototyping platform for teams and individuals.
|
||||||
home: https://github.com/tommy-skaug/charts
|
home: https://github.com/tommy-skaug/charts
|
||||||
icon: https://avatars.githubusercontent.com/u/30179644?s=200&v=4
|
icon: https://avatars.githubusercontent.com/u/30179644?s=200&v=4
|
||||||
|
|
20
charts/penpot/templates/db-init.yaml
Normal file
20
charts/penpot/templates/db-init.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: {{ include "penpot.fullname" . }}-db-init
|
||||||
|
labels:
|
||||||
|
{{- include "penpot.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": pre-install
|
||||||
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: penpot-db-init
|
||||||
|
image: "{{ .Values.postgres.dbInit.image.repository }}:{{ .Values.postgres.dbInit.image.tag }}"
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: {{ .Values.postgres.secretName }}
|
||||||
|
backoffLimit: 3
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}-backend
|
- name: {{ .Chart.Name }}-backend
|
||||||
image: "penpotapp/backend:{{ .Values.penpotVersion }}"
|
image: "{{ .Values.image.repositoryBackend }}:{{ .Values.penpotVersion }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
# securityContext:
|
# securityContext:
|
||||||
# runAsUser: 1001
|
# runAsUser: 1001
|
||||||
|
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}-exporter
|
- name: {{ .Chart.Name }}-exporter
|
||||||
image: "penpotapp/exporter:{{ .Values.penpotVersion }}"
|
image: "{{ .Values.image.repositoryExporter }}:{{ .Values.penpotVersion }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
# securityContext:
|
# securityContext:
|
||||||
# runAsUser: 1001
|
# runAsUser: 1001
|
||||||
|
|
|
@ -20,7 +20,7 @@ spec:
|
||||||
# fsGroup: 1001
|
# fsGroup: 1001
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}-frontend
|
- name: {{ .Chart.Name }}-frontend
|
||||||
image: "penpotapp/frontend:{{ .Values.penpotVersion }}"
|
image: "{{ .Values.image.repositoryFrontend }}:{{ .Values.penpotVersion }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
# securityContext:
|
# securityContext:
|
||||||
# runAsUser: 1001
|
# runAsUser: 1001
|
||||||
|
|
|
@ -25,3 +25,18 @@ exporter:
|
||||||
resources:
|
resources:
|
||||||
limits: {}
|
limits: {}
|
||||||
requests: {}
|
requests: {}
|
||||||
|
|
||||||
|
image:
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
repositoryBackend: penpotapp/backend
|
||||||
|
repositoryFrontend: penpotapp/frontend
|
||||||
|
repositoryExporter: penpotapp/exporter
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
dbInit:
|
||||||
|
repository: ghcr.io/onedr0p/postgres-init
|
||||||
|
tag: "16"
|
||||||
|
hostname: "postgres-rw.databases.svc.cluster.local"
|
||||||
|
database_name: "penpot"
|
||||||
|
port: "5432"
|
||||||
|
secretName: penpot-secret
|
||||||
|
|
Loading…
Reference in a new issue