File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ apiVersion: apps/v1
22kind : Deployment
33metadata :
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 }}
712spec :
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
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
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
66 labels :
77 {{- include "codexdocs.labels" . | nindent 4 }}
88spec :
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 }}
2525spec :
26- storageClassName : {{ .Values.volumes.uploads.storageClassName }}
26+ storageClassName : {{ .Values.volumes.uploads.storageClassName | quote }}
2727 accessModes :
2828 - ReadWriteOnce
2929 resources :
Original file line number Diff line number Diff line change 11replicaCount : 1
22
3+ annotations :
4+
35configuration :
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
4049auth :
You can’t perform that action at this time.
0 commit comments