Skip to content

Commit

Permalink
helm: Add storage.claimAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 25, 2023
1 parent 8b6a7b4 commit ffed624
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions k8s/helm/charts/minio/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: "{{ .Values.storage.persistentClaimName | default (include "minio.fullname" .) }}"
labels:
{{- include "minio.labels" . | nindent 4 }}
{{- with .Values.storage.claimAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
storageClassName: {{ .Values.storage.storageClass | quote }}
accessModes:
Expand Down
2 changes: 2 additions & 0 deletions k8s/helm/charts/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,5 @@ storage:
persistentClaimName: ""
storageClass: ""
capacity: 100Gi

claimAnnotations: {}
4 changes: 4 additions & 0 deletions k8s/helm/charts/postgres/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: "{{ .Values.storage.persistentClaimName | default (include "postgres.fullname" .) }}"
labels:
{{- include "postgres.labels" . | nindent 4 }}
{{- with .Values.storage.claimAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
storageClassName: {{ .Values.storage.storageClass | quote }}
accessModes:
Expand Down
2 changes: 2 additions & 0 deletions k8s/helm/charts/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ storage:
persistentClaimName: ""
storageClass: ""
capacity: 100Gi

claimAnnotations: {}
4 changes: 4 additions & 0 deletions k8s/helm/charts/registry/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
name: "{{ .Values.storage.persistentClaimName | default (include "registry.fullname" .) }}"
labels:
{{- include "registry.labels" . | nindent 4 }}
{{- with .Values.storage.claimAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
storageClassName: {{ .Values.storage.storageClass | quote }}
accessModes:
Expand Down
2 changes: 2 additions & 0 deletions k8s/helm/charts/registry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ storage:
persistentClaimName: ""
storageClass: ""
capacity: 100Gi

claimAnnotations: {}

0 comments on commit ffed624

Please sign in to comment.