mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-03 08:04:45 +00:00
client-go should not take a dependency on the v1 api lightly
These constants will never change, and tools/ should not be depending on core/api/v1 (there is nothing v1 specific about them). Kubernetes-commit: aa9fd2bf11ae6be922b5b0fe45f5254c40366b2e
This commit is contained in:
committed by
Kubernetes Publisher
parent
9e6dfd5187
commit
7130d1acc2
@@ -22,7 +22,6 @@ import (
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
||||
"k8s.io/api/core/v1"
|
||||
restclient "k8s.io/client-go/rest"
|
||||
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
|
||||
)
|
||||
@@ -145,7 +144,7 @@ func (config *DeferredLoadingClientConfig) Namespace() (string, bool, error) {
|
||||
|
||||
if len(ns) > 0 {
|
||||
// if we got a non-default namespace from the kubeconfig, use it
|
||||
if ns != v1.NamespaceDefault {
|
||||
if ns != "default" {
|
||||
return ns, false, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user