Uh oh!
There was an error while loading. Please reload this page.
[AIRFLOW-6585] Fixed Timestamp bug in RefreshKubeConfigLoader - #7153
[AIRFLOW-6585] Fixed Timestamp bug in RefreshKubeConfigLoader#7153Bruschkov wants to merge 4 commits into
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! Here are some useful points:
Apache Airflow is a community-driven project and together we are making it better 🚀. In case of doubts contact the developers at: |
potiuk
left a comment
There was a problem hiding this comment.
I'd still prefer to have a test for that one. This should b e rather easy to add such test.
There is already the tests/kubernetes/test_client.py with two tests and adding a test there would be just great (we need to improve coverage on Kubernetes part and even really small tests like that gradually added help a lot)
Would you be so nice to add it please?
Codecov Report
@@ Coverage Diff @@## master #7153 +/- ##
========================================
Coverage ? 85.4% ========================================
Files ? 710 Lines ? 39484 Branches ? 0 ========================================
Hits ? 33723 Misses ? 5761 Partials ? 0
Continue to review full report at Codecov.
|
Bruschkov
commented
Jan 14, 2020
Hi, thanks for your quick feedback. Added the test and amended the PR. |
Bruschkov
commented
Jan 15, 2020
Everything solved and build passes now. Best regards |
ashb
commented
Jan 16, 2020
Change looks good now, but as this JIRA was already released we need a new JIRA please. (We use the Fix Version to know what to pull back to our releases, and as AIRFLOW-5117 is already released we would otherwise miss this change when building 1.10.8) |
ashb
left a comment
There was a problem hiding this comment.
Please create new Jira ticket for this.
Bruschkov
commented
Jan 21, 2020
@ashb New JIRA created and linked to this PR. |
mik-laj
commented
Feb 2, 2020
Why are these changes being made in this project and not in the Kubernetes library? I can't find the ticket in the library repository. |
Bruschkov
commented
Feb 3, 2020
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
| def _parse_timestamp(ts_str: str) -> int: | ||
| if ts_str[-1] == 'Z': |
There was a problem hiding this comment.
Using pendulum (which we already use) might be a better fix than this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
benjaminsky
commented
Jul 17, 2020
This is still an issue with EKS and Airflow v1.10.10. This PR fixes it. Can we reopen this PR? |
potiuk
commented
Jul 19, 2020
@benjaminsky -> sure, would you mind picking this up? I think this one neds rebase and there is a change requested. Unnless (@Bruschkov wants to do it). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
ramsesrm
commented
Sep 30, 2020
Hi, this is still an issue on Airflow v1.10.12. Can we reopen the PR? |
JIRA
https://issues.apache.org/jira/browse/AIRFLOW-6585
Description
When using the KubernetesPodOperator on an aws kubernetes cluster, the aws-iam-authenticator is used to obtain kubernetes authentication tokens. The aws tokens contain ISO-8601 formatted timestamps, which couldn't be parsed in case of a "Z" (Zulu Time) timezone. This PR fixes this problem by converting the "Z" timezone into a regular "+0000" format.
Upon further review this is only a problem with python version <= 3.6. But that should not keep the issue from being fixed.