Skip to content

Commit

Permalink
Fix doc include path and k8s test
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Feb 5, 2025
1 parent 2e1bc6d commit 06fdbdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def _rebuild_k8s_image(
COPY --chown=airflow:0 airflow/example_dags/ /opt/airflow/dags/
COPY --chown=airflow:0 providers/src/airflow/providers/cncf/kubernetes/kubernetes_executor_templates/ /opt/airflow/pod_templates/
COPY --chown=airflow:0 providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/kubernetes_executor_templates/ /opt/airflow/pod_templates/
ENV GUNICORN_CMD_ARGS='--preload' AIRFLOW__WEBSERVER__WORKER_REFRESH_INTERVAL=0
"""
Expand Down
6 changes: 3 additions & 3 deletions providers/cncf/kubernetes/docs/kubernetes_executor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@ With these requirements in mind, here are some examples of basic ``pod_template_

Storing DAGs in the image:

.. literalinclude:: /../../providers/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_image_template.yaml
.. literalinclude:: /../../providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_image_template.yaml
:language: yaml
:start-after: [START template_with_dags_in_image]
:end-before: [END template_with_dags_in_image]

Storing DAGs in a ``persistentVolume``:

.. literalinclude:: /../../providers/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_volume_template.yaml
.. literalinclude:: /../../providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/dags_in_volume_template.yaml
:language: yaml
:start-after: [START template_with_dags_in_volume]
:end-before: [END template_with_dags_in_volume]

Pulling DAGs from ``git``:

.. literalinclude:: /../../providers/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/git_sync_template.yaml
.. literalinclude:: /../../providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/git_sync_template.yaml
:language: yaml
:start-after: [START git_sync_template]
:end-before: [END git_sync_template]
Expand Down

0 comments on commit 06fdbdf

Please sign in to comment.