Skip to content

Commit

Permalink
Merge 5adfc80 into ef6c170
Browse files Browse the repository at this point in the history
  • Loading branch information
timflyio authored Feb 13, 2025
2 parents ef6c170 + 5adfc80 commit 9c820aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/command/extensions/kubernetes/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ func runSaveKubeconfig(ctx context.Context) error {
}

metadata := resp.AddOn.Metadata.(map[string]interface{})
kubeconfig := metadata["kubeconfig"].(string)
kubeconfig, ok := metadata["kubeconfig"].(string)
if !ok {
return fmt.Errorf("failed to fetch kubeconfig")
}

outFilename := flag.GetString(ctx, "output")
if outFilename == "" {
Expand Down

0 comments on commit 9c820aa

Please sign in to comment.