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 2021/07/28 10:44:16 UTC

[GitHub] [airflow] jean-malo commented on issue #16013: CLI 'kubernetes cleanup-pods' fails on invalid label key

jean-malo commented on issue #16013:
URL: https://github.com/apache/airflow/issues/16013#issuecomment-888209174


   Same issue here running `apache-airflow==2.1.2` and `apache-airflow-providers-cncf-kubernetes==2.0.0`
   
   It is not an issue with the labels (they are all valid) but rather an issue with the usage of `match_expressions` in this [line](https://github.com/apache/airflow/blob/2.1.2/airflow/cli/commands/kubernetes_command.py#L102-L108). I haven't investigated the kubernetes python client but it seems like it's sending label selectors that are not formatted correctly to the kubernetes API. 
   
   Using a standard string based label selector seems to work fine see this [commit](https://github.com/dlampa/airflow/commit/2e586414cec140ca8db1e75629c01daf9d9d2a78) as an example


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org