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

[fix] support refreshing exec api credentials #258

Merged

Conversation

harryharpel
Copy link
Contributor

Fixes #257. This PR is based heavily on kubernetes-client/python-base#250. It also includes the fix made here to the non-asyncio library.

This change has been tested in multiple services that rely on a long running client that was previously failing due to expiring credentials.

@harryharpel harryharpel force-pushed the fix/refresh-exec-based-api-credentials branch from 66349ac to 2891dc3 Compare May 22, 2023 20:14
@harryharpel harryharpel requested a review from tomplus June 13, 2023 17:04
@harryharpel
Copy link
Contributor Author

I have submitted changes in response to the previous feedback - please let me know if any additional changes are required to move this forward.

@harryharpel harryharpel force-pushed the fix/refresh-exec-based-api-credentials branch from 2891dc3 to d2ad704 Compare July 24, 2023 14:26
@harryharpel harryharpel requested a review from tomplus July 24, 2023 14:42
Copy link
Owner

@tomplus tomplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

kubernetes_asyncio/config/kube_config.py Outdated Show resolved Hide resolved
kubernetes_asyncio/config/kube_config.py Outdated Show resolved Hide resolved
kubernetes_asyncio/config/kube_config.py Outdated Show resolved Hide resolved
kubernetes_asyncio/client/configuration.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 30, 2023

Codecov Report

Patch coverage: 90.32% and project coverage change: +0.01% 🎉

Comparison is base (4695715) 24.66% compared to head (8461f34) 24.68%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #258      +/-   ##
==========================================
+ Coverage   24.66%   24.68%   +0.01%     
==========================================
  Files         736      736              
  Lines       99024    99045      +21     
==========================================
+ Hits        24429    24449      +20     
- Misses      74595    74596       +1     
Files Changed Coverage Δ
kubernetes_asyncio/config/kube_config.py 92.11% <82.35%> (-0.11%) ⬇️
kubernetes_asyncio/config/kube_config_test.py 94.91% <100.00%> (+0.15%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@harryharpel harryharpel force-pushed the fix/refresh-exec-based-api-credentials branch from d2ad704 to 6f909ca Compare July 31, 2023 21:27
@harryharpel harryharpel force-pushed the fix/refresh-exec-based-api-credentials branch from 6f909ca to 8461f34 Compare July 31, 2023 21:45
@harryharpel harryharpel requested a review from tomplus July 31, 2023 21:48
@tomplus tomplus merged commit b5916ce into tomplus:master Aug 4, 2023
7 checks passed
@consideRatio
Copy link
Contributor

Thank you for your maintenance work in this repo @tomplus and @harryharpel!! ❤️ 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refresh exec-based API credentials when they expire
3 participants