mirror of
https://github.com/bitnami/charts.git
synced 2026-02-22 22:07:26 +08:00
* [bitnami/phpbb] Add missing namespace metadata Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * [skip ci] Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Update Notes Signed-off-by: Miguel Ruiz <miruiz@vmware.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: phpbb
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.persistence.annotations .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- if .Values.persistence.annotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.persistence.annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.persistence.hostPath }}
|
|
storageClassName: ""
|
|
{{- end }}
|
|
accessModes:
|
|
{{- if not (empty .Values.persistence.accessModes) }}
|
|
{{- range .Values.persistence.accessModes }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- include "phpbb.storageClass" . | nindent 2 }}
|
|
{{- end -}}
|