Skip to content

Commit 7965eee

Browse files
committed
Rename operatorInCluster
1 parent 99afb4a commit 7965eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/lib/k8s/k8s.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ type Client struct {
5555
Namespace string
5656
}
5757

58-
func New(namespace string, operatorInCluster bool) (*Client, error) {
58+
func New(namespace string, inCluster bool) (*Client, error) {
5959
var err error
6060
client := &Client{
6161
Namespace: namespace,
6262
}
63-
if operatorInCluster {
63+
if inCluster {
6464
client.RestConfig, err = rest.InClusterConfig()
6565
} else {
6666
kubeConfig := path.Join(home, ".kube", "config")

0 commit comments

Comments
 (0)