davlum commented on issue #7168: [AIRFLOW-6561] Add possibility to specify 
default resources for airfl…
URL: https://github.com/apache/airflow/pull/7168#issuecomment-577890923
 
 
   The JSON you are passing will not turn into a K8S resource object. I would 
suggest deserializing into a `kubernetes.client.models.V1ResourceRequirements` 
object in the `WorkerConfiguration` class.
   
   Hypothetically you could pass JSON which conforms to the K8S api;
   `{"limits": {"cpu":"foo", "memory":"bar"}, "requests": {"cpu":"foo", 
"memory":"bar"}}`, but I think deserializing to the object is the better choice.

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