mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Update staging/src/k8s.io/kubectl/pkg/cmd/config/config.go
Co-authored-by: Philipp Stehle <philipp.stehle@sap.com>
This commit is contained in:
parent
c0b3a698fa
commit
9d03185d3c
@ -110,7 +110,7 @@ func helpErrorf(cmd *cobra.Command, format string, args ...interface{}) error {
|
||||
|
||||
// The completion function need the factory, so we initialize them once it is available
|
||||
func initCompletionFunctions(f cmdutil.Factory) {
|
||||
CompListContextsInConfig = func(notused cmdutil.Factory, toComplete string) []string {
|
||||
CompListContextsInConfig = func(_ cmdutil.Factory, toComplete string) []string {
|
||||
config, err := f.ToRawKubeConfigLoader().RawConfig()
|
||||
if err != nil {
|
||||
return nil
|
||||
@ -124,7 +124,7 @@ func initCompletionFunctions(f cmdutil.Factory) {
|
||||
return ret
|
||||
}
|
||||
|
||||
CompListClustersInConfig = func(notused cmdutil.Factory, toComplete string) []string {
|
||||
CompListClustersInConfig = func(_ cmdutil.Factory, toComplete string) []string {
|
||||
config, err := f.ToRawKubeConfigLoader().RawConfig()
|
||||
if err != nil {
|
||||
return nil
|
||||
@ -138,7 +138,7 @@ func initCompletionFunctions(f cmdutil.Factory) {
|
||||
return ret
|
||||
}
|
||||
|
||||
CompListUsersInConfig = func(notused cmdutil.Factory, toComplete string) []string {
|
||||
CompListUsersInConfig = func(_ cmdutil.Factory, toComplete string) []string {
|
||||
config, err := f.ToRawKubeConfigLoader().RawConfig()
|
||||
if err != nil {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user