Skip to content

Commit

Permalink
Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Otávio Fernandes committed Apr 13, 2019
1 parent 789bce1 commit 085687b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/vault-handler/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package vaulthandler

import (
"bytes"
"errors"
"fmt"
"os"
"path/filepath"
Expand All @@ -11,7 +10,7 @@ import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // makeing sure gcp plugin is present
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // making sure gcp plugin is present
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
)
Expand Down Expand Up @@ -106,7 +105,7 @@ func (k *Kubernetes) localConfig() (*rest.Config, error) {
if k.kubeConfig == "" {
homeDir := os.Getenv("HOME")
if homeDir == "" {
return nil, errors.New("environment HOME is empty, can't find '~/.kube/config' file")
return nil, fmt.Errorf("environment HOME is empty, can't find '~/.kube/config' file")
}
k.kubeConfig = filepath.Join(homeDir, ".kube", "config")
k.logger.Info("Using default Kubernetes config file!")
Expand Down

0 comments on commit 085687b

Please sign in to comment.