diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1e017ee..c43864b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,6 +1,8 @@ name: Lint -on: push +on: + push: + pull_request: jobs: check-modules: diff --git a/kubernetes.go b/kubernetes.go index 562b73a..d6e843a 100644 --- a/kubernetes.go +++ b/kubernetes.go @@ -19,7 +19,6 @@ import ( "k8s.io/client-go/dynamic" "k8s.io/client-go/kubernetes" _ "k8s.io/client-go/plugin/pkg/client/auth" // Required for access to GKE and AKS - restclient "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/util/homedir" ) @@ -149,7 +148,7 @@ func getClientConfig(options KubeConfig) (*rest.Config, error) { kubeconfig := options.ConfigPath if kubeconfig == "" { // are we in-cluster? - config, err := restclient.InClusterConfig() + config, err := rest.InClusterConfig() if err == nil { return config, nil }