XD-DENG commented on a change in pull request #4636: [AIRFLOW-3737] Kubernetes 
executor cannot handle long dag/task names
URL: https://github.com/apache/airflow/pull/4636#discussion_r268013551
 
 

 ##########
 File path: airflow/contrib/executors/kubernetes_executor.py
 ##########
 @@ -477,6 +481,27 @@ def _make_safe_pod_id(safe_dag_id, safe_task_id, 
safe_uuid):
 
         return safe_pod_id
 
+    @staticmethod
+    def _make_safe_label_value(string):
+        """
+        Valid label values must be 63 characters or less and must be empty or 
begin and
+        end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), 
underscores (_),
+        dots (.), and alphanumerics between.
+
+        If the label value is then greater than 63 chars once made safe, or 
differs in any
+        way from the original value sent to this function, then we need to 
truncate to
+        53chars, and append it with a unique hash.
 
 Review comment:
   `53chars` is a typo?

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to