You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/11/23 19:14:00 UTC

[airflow] 04/05: Dags-in-image pod template example should not have dag mounts (#19337)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 7ed1c770af241509318312f31a59b634894e4b36
Author: Daniel Standish <15...@users.noreply.github.com>
AuthorDate: Mon Nov 1 09:28:57 2021 -0700

    Dags-in-image pod template example should not have dag mounts (#19337)
    
    (cherry picked from commit 98287732daa9c264c5ac34d58edc1b9ab9253376)
---
 .../pod_template_file_examples/dags_in_image_template.yaml     | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/airflow/kubernetes/pod_template_file_examples/dags_in_image_template.yaml b/airflow/kubernetes/pod_template_file_examples/dags_in_image_template.yaml
index 27a7e96..a48e233 100644
--- a/airflow/kubernetes/pod_template_file_examples/dags_in_image_template.yaml
+++ b/airflow/kubernetes/pod_template_file_examples/dags_in_image_template.yaml
@@ -54,13 +54,6 @@ spec:
       volumeMounts:
         - mountPath: "/opt/airflow/logs"
           name: airflow-logs
-        - mountPath: /opt/airflow/dags
-          name: airflow-dags
-          readOnly: false
-        - mountPath: /opt/airflow/dags
-          name: airflow-dags
-          readOnly: true
-          subPath: repo/tests/dags
   hostNetwork: false
   restartPolicy: Never
   securityContext:
@@ -74,9 +67,6 @@ spec:
     []
   serviceAccountName: 'RELEASE-NAME-worker-serviceaccount'
   volumes:
-    - name: dags
-      persistentVolumeClaim:
-        claimName: RELEASE-NAME-dags
     - emptyDir: {}
       name: airflow-logs
     - configMap: