Skip to content

Commit

Permalink
gateway: add options for custom mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
multun committed Nov 8, 2023
1 parent 71dc70b commit e651826
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/gateway_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
- name: config
mountPath: /srv/gateway.toml
subPath: gateway.toml
{{- with .Values.gateway.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- with .Values.gateway.env }}
{{- toYaml . | nindent 12 }}
Expand All @@ -51,6 +54,9 @@ spec:
- name: config
configMap:
name: {{ include "osrd.fullname" . }}-gateway-config
{{- with .Values.gateway.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gateway.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ gateway:
affinity: {}
resources: {}
env: []
volumes: []
volumeMounts: []
config:
secretKey: "changeme"
trusted_proxies:
Expand Down

0 comments on commit e651826

Please sign in to comment.