You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/04 19:38:57 UTC

[GitHub] [airflow] dimberman commented on a change in pull request #13405: KubernetesPodOperator Guide

dimberman commented on a change in pull request #13405:
URL: https://github.com/apache/airflow/pull/13405#discussion_r570493888



##########
File path: docs/apache-airflow-providers-cncf-kubernetes/operators.rst
##########
@@ -115,14 +905,169 @@ alongside the Pod. The Pod must write the XCom value into this location at the `
 
 See the following example on how this occurs:
 
-.. exampleinclude:: /../../airflow/providers/cncf/kubernetes/example_dags/example_kubernetes.py
-    :language: python
-    :start-after: [START howto_operator_k8s_write_xcom]
-    :end-before: [END howto_operator_k8s_write_xcom]
 
-Reference
-^^^^^^^^^
-For further information, look at:
+- Example Dag : KubernetesPodOperator task writes contents to be returned to ``/airflow/xcom/return.json`` and reading
+  values returned using ``xcom_pull(key, task_ids)``.
+
+.. code-block:: python

Review comment:
       Can you please move these code segments into example_dag files or some other external file and pull in using tags? That way we can re-use these code snippets later and have python linting when editing them.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org