Skip to content

Commit

Permalink
fix: support global kubectl options
Browse files Browse the repository at this point in the history
This is a regression introduced with a7f05fe

Fixes issue #45

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Sep 14, 2023
1 parent 1ec3616 commit df56c47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/kuberlr/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"flag"
"os"
"path/filepath"
"strings"
Expand All @@ -17,7 +16,6 @@ import (

func main() {
klog.InitFlags(nil)
flag.Parse()

binary := osexec.TrimExt(filepath.Base(os.Args[0]))
if strings.HasSuffix(binary, "kubectl") {
Expand Down

0 comments on commit df56c47

Please sign in to comment.