potiuk commented on a change in pull request #5786:  [AIRFLOW-5170] 
[AIRFLOW-5256] Consistent licences for python files and related pylint fixes
URL: https://github.com/apache/airflow/pull/5786#discussion_r323030448
 
 

 ##########
 File path: airflow/executors/kubernetes_executor.py
 ##########
 @@ -40,12 +42,18 @@
 from airflow.exceptions import AirflowConfigException, AirflowException
 from airflow.utils.log.logging_mixin import LoggingMixin
 
+MAX_POD_ID_LEN = 253
+MAX_LABEL_LEN = 63
+
 
 class KubernetesExecutorConfig:
-    def __init__(self, image=None, image_pull_policy=None, request_memory=None,
+    """Configuration for Kubernetes Executor"""
+    def __init__(self,  # pylint: disable=too-many-arguments
+                 image=None, image_pull_policy=None, request_memory=None,
                  request_cpu=None, limit_memory=None, limit_cpu=None, 
limit_gpu=None,
                  gcp_service_account_key=None, node_selectors=None, 
affinity=None,
                  annotations=None, volumes=None, volume_mounts=None, 
tolerations=None, labels=None):
+        """Initializes the class"""
 
 Review comment:
   Done.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to