Skip to content

Commit

Permalink
Fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood committed Mar 2, 2025
1 parent ad29f49 commit 22aa96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/kubernetes/cilium/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ func NewKindCluster(env config.Env, vm *remote.Host, name string, kubeVersion st
}

clusters := out["clusters"].([]interface{})
cluster := clusters[0].(map[string]interface{})["cluster"]
server := cluster.(map[string]interface{})["server"].(string)
cluster := clusters[0].(map[interface{}]interface{})["cluster"]
server := cluster.(map[interface{}]interface{})["server"].(string)
u, err := url.Parse(server)
if err != nil {
return nil, fmt.Errorf("could not parse server address %s: %w", server, err)
Expand Down

0 comments on commit 22aa96d

Please sign in to comment.