From fe037700310450355a5f448eb39c9e3c993278f1 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Thu, 25 Jul 2019 08:01:15 +0000 Subject: [PATCH] Revert "charts: Remove subpath from airflow volumes" airflow.cfg file was mounted as a dir, not a file, so airflow service doesn't want to start. This reverts commit 6794903558495e288f9cb6794e6459409de1fc71. Change-Id: I6db528ac91fc5cb6719831eb2915467105f4c491 --- charts/shipyard/templates/statefulset-airflow-worker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/shipyard/templates/statefulset-airflow-worker.yaml b/charts/shipyard/templates/statefulset-airflow-worker.yaml index b4ac34f6..cfbf9e48 100644 --- a/charts/shipyard/templates/statefulset-airflow-worker.yaml +++ b/charts/shipyard/templates/statefulset-airflow-worker.yaml @@ -120,9 +120,11 @@ spec: volumeMounts: - name: airflow-etc mountPath: {{ .Values.conf.airflow_config_file.path }} + subPath: airflow.cfg readOnly: true - name: shipyard-etc mountPath: /usr/local/airflow/plugins/shipyard.conf + subPath: shipyard.conf readOnly: true - name: airflow-logs mountPath: {{ .Values.conf.airflow.core.base_log_folder }} @@ -145,9 +147,11 @@ spec: volumeMounts: - name: airflow-etc mountPath: {{ .Values.conf.airflow_config_file.path }} + subPath: airflow.cfg readOnly: true - name: shipyard-etc mountPath: /usr/local/airflow/plugins/shipyard.conf + subPath: shipyard.conf readOnly: true - name: airflow-logs mountPath: {{ .Values.conf.airflow.core.base_log_folder }}