Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/api/templates/configmap-mediawiki-service-map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mediawiki-service-map
data:
# some data
17 changes: 15 additions & 2 deletions charts/api/templates/deployment-app-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,28 @@ spec:
name: {{ template "api.fullname" . }}-app-passport-keys
{{- end }}
key: oauth-private.key
{{- if .Values.app.gce.serviceAccountSecret }}
volumeMounts:
{{- if .values.app.gce.serviceAccountSecret }}
- name: "service-account-wbstack-api"
mountPath: "/var/run/secret/cloud.google.com"
{{- end }}

{{- if .Values.configMap.name }}
- name: mw-host-map
mountPath: {{ .Values.configMap.mountPath }}
{{- end }}
volumes:
{{- if .values.app.gce.serviceAccountSecret }}
- name: "service-account-wbstack-api"
secret:
secretName: {{ .Values.app.gce.serviceAccountSecret | quote }}
{{- end }}
{{- end }}

{{- if .Values.configMap.name }}
- name: mw-host-map
configMap:
name: {{ .Values.configMap.name }}
{{- end }}

{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
4 changes: 4 additions & 0 deletions charts/api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ service:
ingress:
enabled: false

configMap:
name: "mediawiki-host-map"
mountPath: "/config"

resources:
backend: {}
web: {}
Expand Down
Loading