Fix Windows Compatibility: Symlink Handling, Permission Fixes, and Test Stability Improvements #2438
+252
−21
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.
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it
This PR fixes multiple Windows-specific issues in the Kubernetes Python client repository to improve developer experience, test stability, and compatibility on Windows systems.
Problem: Windows environments have limited support for Unix-style symbolic links, and strict file permission semantics caused test failures. Additionally, some tests had missing imports and environment-dependent behavior that prevented Windows development.
Solution: This PR introduces targeted fixes and workarounds for these problems, enabling smooth local development and CI testing on Windows without affecting Linux/macOS compatibility.
Which issue(s) this PR fixes
Fixes #2427
Changes Made
🔧 Core Fixes
__init__.py
to replace Unix-style symlinks📝 Developer Experience
setup-windows-dev.ps1
for easy Windows development environment setupWINDOWS_DEVELOPMENT.md
with detailed setup instructions and troubleshooting🚀 CI Integration
windows-test.yml
) to prevent future regressionsTesting
Special notes for reviewers
Does this PR introduce a user-facing change?
Improved Windows development experience: Fixed symlink issues, test failures, and added comprehensive Windows setup documentation.
Additional documentation
WINDOWS_DEVELOPMENT.md
- Complete Windows setup and troubleshooting guidesetup-windows-dev.ps1
- Automated Windows development environment setup script