diff --git a/internal/config/flags/kubernetes.go b/internal/config/flags/kubernetes.go index c48ac350..1e755f3b 100644 --- a/internal/config/flags/kubernetes.go +++ b/internal/config/flags/kubernetes.go @@ -31,7 +31,7 @@ func Context(cmd *cobra.Command) { return nil, cobra.ShellCompDirectiveNoFileComp } names := make([]string, 0, len(conf.Contexts)) - for name, _ := range conf.Contexts { + for name := range conf.Contexts { names = append(names, name) } return names, cobra.ShellCompDirectiveNoFileComp