[stable/hackmd] bump hackmd (codimd) (#8593)

* codimd

Signed-off-by: Taehyun Kim <kgyoo8232@gmail.com>

* add variables in README

Signed-off-by: Taehyun Kim <kgyoo8232@gmail.com>

* remove NODE_ENV, add HMD_DB_URL

Signed-off-by: Taehyun Kim <kgyoo8232@gmail.com>

* bump chart version

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
This commit is contained in:
Taehyun Kim
2019-02-11 07:00:02 -08:00
committed by Kubernetes Prow Robot
parent 7c5332d44a
commit 5bad465540
5 changed files with 34 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: hackmd
apiVersion: v1
version: "1.0.1"
version: "1.1.0"
appVersion: "1.2.1-alpine"
description: Realtime collaborative markdown notes on all platforms.
icon: https://hackmd.io/favicon.png
+2
View File
@@ -45,6 +45,8 @@ Parameter | Description | Default
`persistence.size` | Persistent Volume size | `2Gi`
`persistence.storageClass` | Persistent Volume Storage Class | `unset`
`extraVars` | Hackmd's extra environment variables | `[]`
`podAnnotations` | Pod annotations | `{}`
`sessionSecret` | Hackmd's session secret | `""` (Randomly generated)
`postgresql.install` | Enable PostgreSQL as a chart dependency | `true`
`postgresql.imageTag` | The image tag for PostgreSQL | `9.6.2`
`postgresql.postgresUser` | PostgreSQL User to create | `hackmd`
+13 -2
View File
@@ -18,6 +18,10 @@ spec:
labels:
app: {{ template "hackmd.name" . }}
release: {{ .Release.Name }}
{{- with .Values.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
@@ -38,7 +42,7 @@ spec:
port: 3000
initialDelaySeconds: 30
env:
- name: HMD_DB_PASSWORD
- name: CMD_DB_PASSWORD
{{- if .Values.postgresql.install }}
valueFrom:
secretKeyRef:
@@ -47,8 +51,15 @@ spec:
{{- else }}
value: {{ .Values.postgresql.postgresPassword }}
{{- end }}
- name: CMD_SESSION_SECRET
valueFrom:
secretKeyRef:
name: {{ template "hackmd.fullname" . }}
key: sessionSecret
- name: CMD_DB_URL
value: postgres://{{ .Values.postgresql.postgresUser }}:$(CMD_DB_PASSWORD)@{{ template "hackmd.database.host" . }}:5432/{{ .Values.postgresql.postgresDatabase }}
- name: HMD_DB_URL
value: postgres://{{ .Values.postgresql.postgresUser }}:$(HMD_DB_PASSWORD)@{{ template "hackmd.database.host" . }}:5432/{{ .Values.postgresql.postgresDatabase }}
value: postgres://{{ .Values.postgresql.postgresUser }}:$(CMD_DB_PASSWORD)@{{ template "hackmd.database.host" . }}:5432/{{ .Values.postgresql.postgresDatabase }}
{{- if .Values.extraVars }}
{{ toYaml .Values.extraVars | indent 12 }}
{{- end }}
+16
View File
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ template "hackmd.fullname" . }}
labels:
app: {{ template "hackmd.name" . }}
chart: {{ template "hackmd.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
type: Opaque
data:
{{- if .Values.sessionSecret }}
sessionSecret: {{ .Values.sessionSecret | b64enc | quote }}
{{- else }}
sessionSecret: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
+2
View File
@@ -64,6 +64,8 @@ persistence:
##
# storageClass: "-"
podAnnotations: {}
extraVars: []
nodeSelector: {}