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 2019/07/26 10:34:15 UTC

[GitHub] [airflow] ms32035 commented on a change in pull request #5665: [AIRFLOW-5048] Improve display of Kubernetes resources

ms32035 commented on a change in pull request #5665: [AIRFLOW-5048] Improve display of Kubernetes resources
URL: https://github.com/apache/airflow/pull/5665#discussion_r307686313
 
 

 ##########
 File path: airflow/kubernetes/pod.py
 ##########
 @@ -37,6 +37,10 @@ def has_limits(self):
     def has_requests(self):
         return self.request_cpu is not None or self.request_memory is not None
 
+    def __str__(self):
+        return str({'request': {'memory': self.request_memory, 'cpu': self.request_cpu},
 
 Review comment:
   true, the test covers this, `None` to string is `'None'`

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


With regards,
Apache Git Services