rancher-partner-charts/charts/prophetstor/federatorai/templates/alameda-executor/pvc-log.yaml

30 lines
945 B
YAML

---
{{- if .Values.alamedaExecutor.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
{{- if .Values.global.commonAnnotations }}
{{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }}
{{- end }}
labels:
{{- if .Values.global.commonLabels }}
{{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: federatorai
app: alameda
name: alameda-executor-log.pvc
namespace: {{ .Release.Namespace }}
spec:
accessModes:
{{- if .Values.alamedaExecutor.persistence.accessModes }}
{{ .Values.alamedaExecutor.persistence.accessModes | toYaml | nindent 4 }}
{{- end }}
resources:
requests:
storage: {{ .Values.alamedaExecutor.persistence.logStorageSize }}
{{- if .Values.global.storageClassName }}
storageClassName: {{ .Values.global.storageClassName }}
{{- end }}
{{- end }}