Skip to content

Fix kubectl-helm-minikube installation failures on debian:11 and ubuntu:focal#1578

Open
abdurriq wants to merge 1 commit intodevcontainers:mainfrom
abdurriq:abdurriq/fix-kubectl-curl-timeouts
Open

Fix kubectl-helm-minikube installation failures on debian:11 and ubuntu:focal#1578
abdurriq wants to merge 1 commit intodevcontainers:mainfrom
abdurriq:abdurriq/fix-kubectl-curl-timeouts

Conversation

@abdurriq
Copy link
Contributor

The https://dl.k8s.io/release/stable.txt API used for determining latest K8s version can sometimes timeout, causing the feature to break. This fixes it by adding longer timeouts and fallback options.

…tu:focal (devcontainers#1567)

* Initial plan

* Fix kubectl SHA256 download URL and bump version to 1.3.1

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Add timeout and fallback for kubectl version fetching

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Improve error messages and diagnostics for kubectl version fetching

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Address code review feedback: clean up error handling

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Improve error message to reference VERSION option

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Use hardcoded fallback version instead of git tags fallback

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Add version validation and comment for fallback version

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Extract fallback version to constant at top of file

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

* Update fallback version of kubectl to v1.35.1

* Add alternative URL fallback before using hardcoded version

Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: abdurriq <137001048+abdurriq@users.noreply.github.com>
Co-authored-by: Abdurrahmaan Iqbal <abdurriq@github.com>
@abdurriq abdurriq requested a review from a team as a code owner February 17, 2026 12:38
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.

3 participants