FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(kubectl): prevent panic in IsMinikubeKubernetes on plain string extensions by AruneshDwivedi · Pull Request #3269 · devspace-sh/devspace · GitHub

fix(kubectl): prevent panic in IsMinikubeKubernetes on plain string extensions - #3269

Open
AruneshDwivedi wants to merge 1 commit into
devspace-sh:mainfrom
AruneshDwivedi:fix/minikube-extensions-panic
Open

fix(kubectl): prevent panic in IsMinikubeKubernetes on plain string extensions#3269
AruneshDwivedi wants to merge 1 commit into
devspace-sh:mainfrom
AruneshDwivedi:fix/minikube-extensions-panic

Conversation

AruneshDwivedi commented Jun 10, 2026
edited
Loading

Copy link
Copy Markdown

devspace build panics with reflect.Set: value of type string is not assignable to type map[string]interface {} when the kubeconfig contains extensions with plain string values. The code assumed all extension values are maps, but some are plain strings.

The fix adds a type check before setting the extension value. If it's a string, it's stored directly instead of trying to merge it as a map.

Fixes #3269

…xtensions

When kubeconfig extensions contain plain string values (e.g. from
Teleport), runtime.DefaultUnstructuredConverter.ToUnstructured returns a
string instead of map[string]interface{}. The subsequent map index
operation panics with 'reflect.Set: value of type string is not
assignable to type map[string]interface {}'.

Fix: check that the converted value is actually a map before accessing
it. Non-map extensions are skipped.

Fixes devspace-sh#3218

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>

netlify Bot commented Jun 10, 2026
edited
Loading

Copy link
Copy Markdown

Deploy Preview for devspace-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit dbe3125
🔍 Latest deploy log https://app.netlify.com/projects/devspace-docs/deploys/6a28e1a2fef87f0008bc1374

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL