Skip to content

Commit

Permalink
look at KUBECONFIG env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Sep 10, 2020
1 parent 6cb9573 commit 911307e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"os"

"github.com/rancher/webhook/pkg/admission"
"github.com/rancher/wrangler/pkg/kubeconfig"
Expand All @@ -16,7 +17,7 @@ func main() {
}

func run() error {
cfg, err := kubeconfig.GetNonInteractiveClientConfig("").ClientConfig()
cfg, err := kubeconfig.GetNonInteractiveClientConfig(os.Getenv("KUBECONFIG")).ClientConfig()
if err != nil {
return err
}
Expand Down

0 comments on commit 911307e

Please sign in to comment.