fix: exclude kubernetes==36.0.0 which breaks EKS auth and relax pyyam…#426
Merged
Merged
Conversation
mohamedzeidan2021
approved these changes
Jun 3, 2026
papriwal
approved these changes
Jun 4, 2026
jam-jee
approved these changes
Jun 4, 2026
e1fd103 to
a29e6f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…l pin
What's changing and why?
kubernetes==36.0.0 has a bug where it loads exec-based authentication
tokens (from aws eks get-token) into its configuration but fails to
include the Authorization header in HTTP requests to the Kubernetes API
server, resulting in 401 Unauthorized errors.
This was fixed in kubernetes==36.0.1, which requires pyyaml>=6.0.3.
Relaxing the pyyaml pin from ==6.0.2 to >=6.0.2 allows pip to resolve
kubernetes>=36.0.1 instead of falling back to the broken 36.0.0.
Additionally, explicitly exclude kubernetes==36.0.0 to prevent it from
being installed even if other dependency constraints would allow it.
Before/After UX
Before:
After:
How was this change tested?
I ran multiple CodeBuilds verifying that tests were failing with kubernetes==36.0.0 and passign with kubernetes==36.0.1. I also verified locally that relaxing the pyyaml constraint allows kubernetes to be resolved to a higher version than 36.0.0 (e.g. 36.0.1)
Are unit tests added?
Are integration tests added?
Reviewer Guidelines
One of the following must be true: