Skip to content

Commit

Permalink
removing default for KUBECONFIG to enable in cluster tests (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Jul 15, 2021
1 parent 7764284 commit dbcf4cf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/e2e_flags.go
Expand Up @@ -24,7 +24,6 @@ import (
"flag"
"text/template"

"k8s.io/client-go/tools/clientcmd"
env "knative.dev/pkg/environment"
testenv "knative.dev/pkg/test/environment"
"knative.dev/pkg/test/logging"
Expand All @@ -50,13 +49,6 @@ func initializeFlags() *EnvironmentFlags {
f.ClientConfig.InitFlags(flag.CommandLine)
f.TestClientConfig.InitFlags(flag.CommandLine)

// We want to do this defaulting for tests only. The flags are reused between tests
// and production code and we want to make sure that production code defaults to
// the in-cluster config correctly.
if f.Kubeconfig == "" {
f.Kubeconfig = clientcmd.RecommendedHomeFile
}

return f
}

Expand Down

0 comments on commit dbcf4cf

Please sign in to comment.