Skip to content

Commit

Permalink
fix linting errors and add linter as CI check
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
  • Loading branch information
JorTurFer committed Aug 23, 2023
1 parent ad619e1 commit b31f826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Lint

on: push
on:
push:
pull_request:

jobs:
check-modules:
Expand Down
3 changes: 1 addition & 2 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b31f826

Please sign in to comment.