houqp commented on pull request #13299:
URL: https://github.com/apache/airflow/pull/13299#issuecomment-751922396
Thanks @potiuk for the tips. Based on your findings, I checked the images
from my local breeze run.
Here is part of the output from `breeze kind-cluster deploy`:
```
Image: "apache/airflow:master-python3.6-kubernetes" with ID
"sha256:486ae979be23a58012e5f08b2494fc1903c4cf70d127c837cb9933583130b0e6" not
yet present on node "airflow-python-3.6-v1.18.6-worker", loading...
Image: "apache/airflow:master-python3.6-kubernetes" with ID
"sha256:486ae979be23a58012e5f08b2494fc1903c4cf70d127c837cb9933583130b0e6" not
yet present on node "airflow-python-3.6-v1.18.6-control-plane", loading...
```
Based on the above output, I checked the image with id
`486ae979be23a58012e5f08b2494fc1903c4cf70d127c837cb9933583130b0e6`:
```
18:12:27 ❯ docker images | grep master-python3.6-kubernetes
apache/airflow master-python3.6-kubernetes
486ae979be23 7 minutes ago 845MB
18:13:34 ❯ docker run --rm -it
486ae979be23a58012e5f08b2494fc1903c4cf70d127c837cb9933583130b0e6 bash
airflow@bf3131f32f0d:/opt/airflow$ python
Python 3.6.12 (default, Dec 11 2020, 15:17:39)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from airflow.executors.kubernetes_executor import MAX_POD_ID_LEN
>>>
airflow@bf3131f32f0d:/opt/airflow$ grep MAX_POD_ID_LEN
/home/airflow/.local/lib/python3.6/site-packages/airflow/kubernetes/pod_generator.py
MAX_POD_ID_LEN = 253
safe_pod_id = pod_id[: MAX_POD_ID_LEN - len(safe_uuid) - 1] + "-" +
safe_uuid
```
So this image indeed doesn't include my changes. So perhaps local breeze run
is different from github action run? I will check the image produced by github
action later today.
----------------------------------------------------------------
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]