Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Kubernetes library version and backport pickle-fix for Loggers #18797

Merged
merged 1 commit into from
Jan 4, 2022

Commits on Jan 4, 2022

  1. Update Kubernetes library version

    Previously we pinned this version as v12 as a change to Kube library
    internals meant v1.Pod objects now have a logger object inside them, and
    couldn't be pickled on Python 3.6.
    
    To fix that we have "backported" the change in Python 3.7 to make Logger
    objects be pickled "by name". (In Python 3.7 the change adds
    `__reduce__` methods on to the Logger and RootLogger objects, but here
    we achieve it `copyreg` stdlib module so we don't monkeypatch
    anything.)
    
    This fix is also applied in to airflow core in a separate commit, but we
    also apply it here in the provider so that cncf.kubernetes client
    library can be updated but still used with older versions of Airflow
    that don't have this fix in.
    ashb committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    0d1dc45 View commit details
    Browse the repository at this point in the history