Skip to content

Commit

Permalink
refactor(addok): separate volumes (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmischler72 authored Nov 12, 2024
1 parent a8efdaf commit b1909eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/addok/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/addok/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
items:
- key: addok.conf
path: addok.conf
{{- toYaml .Values.volumes.dataVolume | nindent 8 }}
{{- toYaml .Values.volumes.addokDataVolume | nindent 8 }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/addok/templates/redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
labels: {{- include "addok.redis.selectorLabels" . | nindent 8 }}
spec:
volumes:
{{- toYaml .Values.volumes.dataVolume | nindent 8 }}
{{- toYaml .Values.volumes.redisDataVolume | nindent 8 }}
{{- if .Values.redis.init.enabled }}
initContainers:
- name: download-data
Expand Down
5 changes: 4 additions & 1 deletion charts/addok/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ tolerations: []
affinity: {}

volumes:
dataVolume:
addokDataVolume:
- name: data
emptyDir: {}
redisDataVolume:
- name: data
emptyDir: {}

0 comments on commit b1909eb

Please sign in to comment.