Skip to content

Commit 498d4e6

Browse files
delete commented import and remove unneeded context from gke function
1 parent e4306a3 commit 498d4e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/validate/kube/gke.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type ClusterInfo struct {
1414
ClusterName string
1515
}
1616

17-
func Gke(ctx context.Context) Option {
17+
func Gke() Option {
1818
return func(config *Config) {
1919
config.gke = true
2020
}

internal/validate/kube/kube.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"k8s.io/client-go/rest"
2020
"k8s.io/client-go/tools/clientcmd"
2121

22-
// "k8s.io/client-go/tools/clientcmd/api"
2322
"k8s.io/client-go/tools/remotecommand"
2423
"k8s.io/client-go/util/homedir"
2524

@@ -124,7 +123,7 @@ func Validate(ctx context.Context, clientSet *kubernetes.Clientset, restConfig *
124123
return errors.Newf("%s %s", validate.FailureEmoji, err)
125124
}
126125

127-
Gke(ctx)
126+
Gke()
128127

129128
validations = append(validations, validation{
130129
Validate: GkeGcePersistentDiskCSIDrivers,

0 commit comments

Comments
 (0)