Skip to content

Commit

Permalink
add support for extraVolumeMounts and extraVolumes apache-nas (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c authored Sep 26, 2024
1 parent 22e8550 commit 0d796c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions apache-nas/templates/apache-nas-depl.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app.camptocamp.com/name: apache-nas
app.kubernetes.io/name: apache-nas
name: apache-nas
spec:
replicas: 1
selector:
matchLabels:
app.camptocamp.com/name: apache-nas
strategy: {}
app.kubernetes.io/name: apache-nas
template:
metadata:
creationTimestamp: null
labels:
app.camptocamp.com/name: apache-nas
app.kubernetes.io/name: apache-nas
spec:
containers:
- image: {{ .Values.docker_image }}
Expand All @@ -28,6 +25,9 @@ spec:
volumeMounts:
- name: apache-nas-data
mountPath: /var/www/html
{{- if .Values.nas.extraVolumeMounts }}
{{- .Values.nas.extraVolumeMounts | toYaml | nindent 10 }}
{{- end }}
command:
- /bin/bash
args:
Expand All @@ -50,8 +50,10 @@ spec:
- name: apache-nas-data
persistentVolumeClaim:
claimName: {{ .Values.nas.volume.pvc_name }}
{{- if .Values.nas.extraVolumes }}
{{- .Values.nas.extraVolumes | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{- .Values.tolerations | toYaml | nindent 6 }}
{{- end }}
status: {}
2 changes: 1 addition & 1 deletion apache-nas/templates/apache-nas-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- end }}
{{- end }}
labels:
app.camptocamp.com/name: apache-nas
app.kubernetes.io/name: apache-nas
spec:
accessModes:
{{- range .Values.nas.volume.accessModes }}
Expand Down
2 changes: 1 addition & 1 deletion apache-nas/templates/apache-nas-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: apache-nas-svc
spec:
selector:
app.camptocamp.com/name: apache-nas
app.kubernetes.io/name: apache-nas
ports:
- port: 80
targetPort: 80
2 changes: 2 additions & 0 deletions apache-nas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ nas:
- ReadWriteOnce
annotations:
helm.sh/resource-policy: keep
extraVolumeMounts: []
extraVolumes: []

env_variables: []

Expand Down

0 comments on commit 0d796c3

Please sign in to comment.