Skip to content

Commit 98dac02

Browse files
authored
fix volume definition for logs-data with existing claim (#128)
Signed-off-by: Burak Karakan <[email protected]>
1 parent f45f453 commit 98dac02

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

charts/airflow/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: airflow is a platform to programmatically author, schedule, and monitor workflows
33
name: airflow
4-
version: 8.0.5
4+
version: 8.0.6
55
appVersion: 2.0.1
66
icon: https://airflow.apache.org/_images/pin_large.png
77
home: https://airflow.apache.org/

charts/airflow/templates/_helpers/pods.tpl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,12 @@ EXAMPLE USAGE: {{ include "airflow.volumes" (dict "Release" .Release "Values" .V
220220
{{- /* logs */ -}}
221221
{{- if .Values.logs.persistence.enabled }}
222222
- name: logs-data
223-
mountPath: {{ .Values.logs.path }}
224-
subPath: {{ .Values.logs.persistence.subPath }}
223+
persistentVolumeClaim:
224+
{{- if .Values.logs.persistence.existingClaim }}
225+
claimName: {{ .Values.logs.persistence.existingClaim }}
226+
{{- else }}
227+
claimName: {{ printf "%s-logs" (include "airflow.fullname" . | trunc 58) }}
228+
{{- end }}
225229
{{- end }}
226230

227231
{{- /* git-sync */ -}}
@@ -329,4 +333,4 @@ The list of `env` for web/scheduler/worker/flower Pods
329333
{{- if .Values.airflow.extraEnv }}
330334
{{ toYaml .Values.airflow.extraEnv }}
331335
{{- end }}
332-
{{- end }}
336+
{{- end }}

0 commit comments

Comments
 (0)