| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…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>
✅ Deploy Preview for devspace-docs canceled.Built without sensitive environment variables
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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