Skip to content

Commit 2977b0e

Browse files
committed
fixup: Consistently use kubeconfig as a word
1 parent dea4e91 commit 2977b0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/fixture/bootstrapmonitor/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ func getLatestImageDetails(
222222

223223
func getClientset(log logging.Logger) (*kubernetes.Clientset, error) {
224224
log.Info("Initializing clientset")
225-
kubeConfigPath := os.Getenv(flags.KubeConfigPathEnvVar)
226-
return tmpnet.GetClientset(log, kubeConfigPath, "")
225+
kubeconfigPath := os.Getenv(flags.KubeconfigPathEnvVar)
226+
return tmpnet.GetClientset(log, kubeconfigPath, "")
227227
}

tests/fixture/tmpnet/flags/kube_config.go renamed to tests/fixture/tmpnet/flags/kubeconfig.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/ava-labs/avalanchego/tests/fixture/tmpnet"
1414
)
1515

16-
const KubeConfigPathEnvVar = "KUBECONFIG"
16+
const KubeconfigPathEnvVar = "KUBECONFIG"
1717

1818
type KubeconfigVars struct {
1919
Path string
@@ -48,10 +48,10 @@ func (v *KubeconfigVars) register(stringVar varFunc[string], docPrefix string) {
4848
stringVar(
4949
&v.Path,
5050
"kubeconfig",
51-
tmpnet.GetEnvWithDefault(KubeConfigPathEnvVar, os.ExpandEnv("$HOME/.kube/config")),
51+
tmpnet.GetEnvWithDefault(KubeconfigPathEnvVar, os.ExpandEnv("$HOME/.kube/config")),
5252
docPrefix+fmt.Sprintf(
5353
"The path to a kubernetes configuration file for the target cluster. Also possible to configure via the %s env variable.",
54-
KubeConfigPathEnvVar,
54+
KubeconfigPathEnvVar,
5555
),
5656
)
5757
stringVar(

0 commit comments

Comments
 (0)