We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99afb4a commit 7965eeeCopy full SHA for 7965eee
pkg/lib/k8s/k8s.go
@@ -55,12 +55,12 @@ type Client struct {
55
Namespace string
56
}
57
58
-func New(namespace string, operatorInCluster bool) (*Client, error) {
+func New(namespace string, inCluster bool) (*Client, error) {
59
var err error
60
client := &Client{
61
Namespace: namespace,
62
63
- if operatorInCluster {
+ if inCluster {
64
client.RestConfig, err = rest.InClusterConfig()
65
} else {
66
kubeConfig := path.Join(home, ".kube", "config")
0 commit comments