Skip to content

Commit

Permalink
apache nas add ability to set annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Jul 5, 2024
1 parent 812c6ee commit 791fac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apache-nas/templates/apache-nas-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.nas.volume.pvc_name }}
{{- with .Values.nas.volume.annotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
labels:
app.camptocamp.com/name: apache-nas
helm.sh/resource-policy: "keep"
spec:
accessModes:
{{- range .Values.nas.volume.accessModes }}
Expand Down
2 changes: 2 additions & 0 deletions apache-nas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ nas:
storage_size: 5Gi
accessModes:
- ReadWriteOnce
annotations:
helm.sh/resource-policy: keep

env_variables: []

Expand Down

0 comments on commit 791fac6

Please sign in to comment.