Skip to content

Commit 19d019d

Browse files
committed
some fixes
1 parent ca04835 commit 19d019d

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

templates/deployment.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ include "codexdocs.fullname" . }}
5+
annotations:
6+
checksum/config: {{ .Values.configuration | toString | sha256sum }}
7+
{{- if .Values.annotations }}
8+
{{- toYaml .Values.annotations | nindent 4 }}
9+
{{- end }}
510
labels:
611
{{- include "codexdocs.labels" . | nindent 4 }}
712
spec:
@@ -57,6 +62,9 @@ spec:
5762
secretKeyRef:
5863
name: {{ template "codexdocs.secretName" . }}
5964
key: {{ template "codexdocs.secretPasswordKey" . }}
65+
{{- if .Values.env }}
66+
{{ toYaml .Values.env | indent 12 }}
67+
{{- end }}
6068
volumeMounts:
6169
- name: config
6270
mountPath: /usr/src/app/config/docs-config.yaml
@@ -67,7 +75,7 @@ spec:
6775
{{- end}}
6876
{{- if eq .Values.configuration.uploads.driver "local" }}
6977
- name: {{ include "codexdocs.fullname" . }}-uploads
70-
mountPath: {{ .Values.configuration.uploads.local.path }}
78+
mountPath: {{ .Values.configuration.uploads.local.path }}
7179
{{- end}}
7280
ports:
7381
- name: http

templates/volumes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
{{- include "codexdocs.labels" . | nindent 4 }}
88
spec:
9-
storageClassName: {{ .Values.volumes.db.storageClassName }}
9+
storageClassName: {{ .Values.volumes.db.storageClassName | quote }}
1010
accessModes:
1111
- ReadWriteOnce
1212
resources:
@@ -23,7 +23,7 @@ metadata:
2323
labels:
2424
{{- include "codexdocs.labels" . | nindent 4 }}
2525
spec:
26-
storageClassName: {{ .Values.volumes.uploads.storageClassName }}
26+
storageClassName: {{ .Values.volumes.uploads.storageClassName | quote }}
2727
accessModes:
2828
- ReadWriteOnce
2929
resources:

values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
replicaCount: 1
22

3+
annotations:
4+
35
configuration:
46
port: 3000
57
host: "0.0.0.0"
@@ -35,6 +37,13 @@ configuration:
3537
mongodb:
3638
uri: mongodb://localhost:27017/docs
3739

40+
# Additional Environment variables
41+
env: {}
42+
# - name: APP_CONFIG_hawk_backendToken
43+
# valueFrom:
44+
# secretKeyRef:
45+
# key: backend-token
46+
# name: hawk-creds
3847

3948
# Authentication parameters
4049
auth:

0 commit comments

Comments
 (0)