Skip to content

Commit

Permalink
k9s doesn't honor KUBECONFIG environment variable when replacing valu…
Browse files Browse the repository at this point in the history
…e for plugin (derailed#2862)
  • Loading branch information
rvarunrathod authored Nov 28, 2024
1 parent 4ef39f5 commit c9ad95a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/view/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"errors"
"fmt"
"os"
"strconv"
"strings"

Expand Down Expand Up @@ -96,6 +97,8 @@ func k8sEnv(c *client.Config) Env {
kcfg := c.Flags().KubeConfig
if kcfg != nil && *kcfg != "" {
cfg = *kcfg
} else {
cfg = os.Getenv("KUBECONFIG")
}

return Env{
Expand Down

0 comments on commit c9ad95a

Please sign in to comment.