Skip to content

fix: exclude kubernetes==36.0.0 which breaks EKS auth and relax pyyam…#426

Merged
aviruthen merged 1 commit into
aws:mainfrom
aviruthen:fix/kubernetes-36.0.0-auth-bug
Jun 4, 2026
Merged

fix: exclude kubernetes==36.0.0 which breaks EKS auth and relax pyyam…#426
aviruthen merged 1 commit into
aws:mainfrom
aviruthen:fix/kubernetes-36.0.0-auth-bug

Conversation

@aviruthen
Copy link
Copy Markdown
Collaborator

…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

‼️ Merge Requirements: PRs with failing integration tests cannot be merged without justification.

One of the following must be true:

  • All automated PR checks pass
  • Failed tests include local run results/screenshots proving they work
  • Changes are documentation-only

@aviruthen aviruthen requested a review from a team as a code owner June 3, 2026 20:56
@aviruthen aviruthen temporarily deployed to manual-approval June 3, 2026 20:57 — with GitHub Actions Inactive
@aviruthen aviruthen force-pushed the fix/kubernetes-36.0.0-auth-bug branch from e1fd103 to a29e6f2 Compare June 4, 2026 21:07
@aviruthen aviruthen deployed to manual-approval June 4, 2026 21:08 — with GitHub Actions Active
@aviruthen aviruthen merged commit 9644fe5 into aws:main Jun 4, 2026
6 checks passed
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.

4 participants