mik-laj commented on a change in pull request #12091:
URL: https://github.com/apache/airflow/pull/12091#discussion_r517403382
##########
File path: airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
##########
@@ -142,50 +142,61 @@ class KubernetesPodOperator(BaseOperator): # pylint:
disable=too-many-instance-
"""
template_fields: Iterable[str] = (
- 'image', 'cmds', 'arguments', 'env_vars', 'labels', 'config_file',
'pod_template_file')
-
+ 'image',
+ 'cmds',
+ 'arguments',
+ 'env_vars',
+ 'labels',
+ 'config_file',
+ 'pod_template_file',
+ )
+
+ # fmt: off
@apply_defaults
- def __init__(self, # pylint: disable=too-many-arguments,too-many-locals
- *,
- namespace: Optional[str] = None,
- image: Optional[str] = None,
- name: Optional[str] = None,
- cmds: Optional[List[str]] = None,
- arguments: Optional[List[str]] = None,
- ports: Optional[List[k8s.V1ContainerPort]] = None,
- volume_mounts: Optional[List[k8s.V1VolumeMount]] = None,
- volumes: Optional[List[k8s.V1Volume]] = None,
- env_vars: Optional[List[k8s.V1EnvVar]] = None,
- env_from: Optional[List[k8s.V1EnvFromSource]] = None,
- secrets: Optional[List[Secret]] = None,
- in_cluster: Optional[bool] = None,
- cluster_context: Optional[str] = None,
- labels: Optional[Dict] = None,
- reattach_on_restart: bool = True,
- startup_timeout_seconds: int = 120,
- get_logs: bool = True,
- image_pull_policy: str = 'IfNotPresent',
- annotations: Optional[Dict] = None,
- resources: Optional[k8s.V1ResourceRequirements] = None,
- affinity: Optional[Dict] = None,
- config_file: Optional[str] = None,
- node_selectors: Optional[Dict] = None,
- image_pull_secrets:
Optional[List[k8s.V1LocalObjectReference]] = None,
- service_account_name: str = 'default',
- is_delete_operator_pod: bool = False,
- hostnetwork: bool = False,
- tolerations: Optional[List] = None,
- security_context: Optional[Dict] = None,
- dnspolicy: Optional[str] = None,
- schedulername: Optional[str] = None,
- full_pod_spec: Optional[k8s.V1Pod] = None,
- init_containers: Optional[List[k8s.V1Container]] = None,
- log_events_on_failure: bool = False,
- do_xcom_push: bool = False,
- pod_template_file: Optional[str] = None,
- priority_class_name: Optional[str] = None,
- termination_grace_period: Optional[int] = None,
- **kwargs) -> None:
+ def __init__( # pylint: disable=too-many-arguments,too-many-locals
Review comment:
Black moved the comment down one line so I had to turn off the
formatting.
----------------------------------------------------------------
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:
[email protected]