[ https://issues.apache.org/jira/browse/AIRFLOW-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16907329#comment-16907329 ]
Ash Berlin-Taylor commented on AIRFLOW-5182: -------------------------------------------- There never has been a KubernetesOperator, and the import is otherwise unused in the doc, so that line should just be removed from the docs. > "KubernetesOperator" isn't implemented > -------------------------------------- > > Key: AIRFLOW-5182 > URL: https://issues.apache.org/jira/browse/AIRFLOW-5182 > Project: Apache Airflow > Issue Type: Bug > Components: documentation > Affects Versions: 1.10.3, 1.10.4 > Reporter: Esfahan > Priority: Minor > > h2. Problem > I encountered the following error with `KubernetesOperator`. > {code:java} > Broken DAG: [/root/airflow/dags/sample_k8s.py] cannot import name > KubernetesOperator > {code} > h2. Investigation > The following document is written a sample code to describe how to use > Kubernetes Executor. > [https://airflow.apache.org/kubernetes.html#kubernetes-operator] > There is a line `import KubernetesOperator`, but I think it isn't implemented > on airflow and it isn't used in this script. > {code:java} > from airflow.contrib.operators import KubernetesOperator > {code} > I couldn't find `KubernetesOperator` in the following dirs. > * [https://github.com/apache/airflow/tree/1.10.4/airflow/contrib/operators] > * [https://github.com/apache/airflow/tree/1.10.4/airflow/operators] > Could you check it? -- This message was sent by Atlassian JIRA (v7.6.14#76016)