Skip to content

Commit

Permalink
wip(charts): dataMount -> dataSubPath [pack]
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Feb 4, 2022
1 parent c82d101 commit 7d4c27c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
4 changes: 2 additions & 2 deletions charts/k2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ spec:
- mountPath: /mbtiles
readOnly: true
name: k2-data
{{- if .Values.dataMount }}
{{- include "common.tplvalues.render" ( dict "value" .Values.dataMount "context" $ ) | nindent 14 }}
{{- if .Values.dataSubPath }}
subPath: {{ include "common.tplvalues.render" ( dict "value" .Values.dataSubPath "context" $ ) }}
{{- end }}
livenessProbe:
httpGet:
Expand Down
5 changes: 2 additions & 3 deletions charts/k2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ env:
# debug specifies the list of namespaces to enable debug output
debug: ""

# dataMount is additionnal keys added to the container's data volume mount
dataMount: {}
# subPath: "tileservergl_data"
# dataSubPath is the subpath in the the dataVolume to mount
dataSubPath: ""

# dataVolume is the specification for the volume where the data lies
dataVolume: {}
Expand Down
4 changes: 2 additions & 2 deletions charts/mapcache/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ spec:
name: mapcache-config
- mountPath: /mnt/data
name: mapcache-data
{{- if .Values.dataMount }}
{{- include "common.tplvalues.render" ( dict "value" .Values.dataMount "context" $ ) | nindent 14 }}
{{- if .Values.dataSubPath }}
subPath: {{ include "common.tplvalues.render" ( dict "value" .Values.dataSubPath "context" $ ) }}
{{- end }}
volumes:
- name: mapcache-config
Expand Down
5 changes: 2 additions & 3 deletions charts/mapcache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ configVolume: {}
# configMap:
# name: '{{ include "common.names.fullname" $ }}-config'

# dataMount is additionnal keys added to the container's data volume mount
dataMount: {}
# subPath: "mapserver_data"
# dataSubPath is the subpath in the the dataVolume to mount
dataSubPath: ""

# dataVolume is the specification for the volume where the data lies
dataVolume: {}
Expand Down
4 changes: 2 additions & 2 deletions charts/mapserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ spec:
- mountPath: /mnt/data
readOnly: true
name: mapserver-data
{{- if .Values.dataMount }}
{{- include "common.tplvalues.render" ( dict "value" .Values.dataMount "context" $ ) | nindent 14 }}
{{- if .Values.dataSubPath }}
subPath: {{ include "common.tplvalues.render" ( dict "value" .Values.dataSubPath "context" $ ) }}
{{- end }}
volumes:
- name: mapserver-config
Expand Down
5 changes: 2 additions & 3 deletions charts/mapserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ configVolume: {}
# configMap:
# name: '{{ include "common.names.fullname" $ }}-config'

# dataMount is additionnal keys added to the container's data volume mount
dataMount: {}
# subPath: "mapserver_data"
# dataSubPath is the subpath in the the dataVolume to mount
dataSubPath: ""

# dataVolume is the specification for the volume where the data lies
dataVolume: {}
Expand Down
4 changes: 2 additions & 2 deletions charts/tileservergl/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ spec:
- mountPath: /mbtiles
readOnly: true
name: tileservergl-data
{{- if .Values.dataMount }}
{{- include "common.tplvalues.render" ( dict "value" .Values.dataMount "context" $ ) | nindent 14 }}
{{- if .Values.dataSubPath }}
subPath: {{ include "common.tplvalues.render" ( dict "value" .Values.dataSubPath "context" $ ) }}
{{- end }}
volumes:
- name: tileservergl-config
Expand Down
5 changes: 2 additions & 3 deletions charts/tileservergl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ configVolume: {}
# configMap:
# name: '{{ include "common.names.fullname" $ }}-config'

# dataMount is additionnal keys added to the container's data volume mount
dataMount: {}
# subPath: "tileservergl_data"
# dataSubPath is the subpath in the the dataVolume to mount
dataSubPath: ""

# dataVolume is the specification for the volume where the data lies
dataVolume: {}
Expand Down

0 comments on commit 7d4c27c

Please sign in to comment.