mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-17 17:16:30 +10:00
* [bitnami/node] Major version. Adapt Chart to apiVersion: v2 * Bump Node version to 14 * Add bitnami/commons * Add labels and annotations standardizations * Add standardizations * Add more standardizations * Update README * Update dependencies once released new common and mongodb * Add MongoDB common subchart validation * fix: dbsecret only for mongodb * Update bitnami/commons version * Use latest mongodb as subchart * [bitnami/node] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: joancafom <jcarmona@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
23 lines
936 B
YAML
23 lines
936 B
YAML
{{- if .Values.persistence.enabled }}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}-binding
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
annotations:
|
|
volume.alpha.kubernetes.io/storage-class: {{ ternary "default" (trimPrefix "storageClassName: " (include "node.storageClass" .)) (empty (include "node.storageClass" .)) }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{ include "node.storageClass" . }}
|
|
{{- end }}
|