Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
konga node data and user data (via configmaps and mounts)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevtg committed Jan 10, 2020
1 parent 803f21f commit 90487d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/konga/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ data:
KONGA_LOG_LEVEL: {{ default "warn" .Values.config.log_level }}
{{- end }}
TOKEN_SECRET: {{ .Values.config.token_secret }}
KONGA_SEED_KONG_NODE_DATA_SOURCE_FILE: "{{ .Values.config.konga_node_data }}"
KONGA_SEED_USER_DATA_SOURCE_FILE: "{{ .Values.config.konga_user_data }}"
{{- end }}

{{- if .Values.ldap }}
Expand Down
8 changes: 8 additions & 0 deletions charts/konga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
app.kubernetes.io/name: {{ include "konga.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
volumes:
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -40,6 +44,10 @@ spec:
name: {{ include "konga.fullname" . }}-config
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/konga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ config: {}
# db_pg_schema: public
# log_level: debug
# token_secret:
# konga_node_data:
# konga_user_data:

# LDAP configuration for Konga
ldap: {}
Expand Down

0 comments on commit 90487d2

Please sign in to comment.