robscott / kube-capacity

A simple CLI that provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
Apache License 2.0
2.06k stars 113 forks source link

`--kubeconfig` flag and `--context` flag seems to be swapped #117

Closed pigeon-999 closed 5 months ago

pigeon-999 commented 5 months ago

tried to change to kube config context using --context flag,

go run main.go  --context KUBE_CTX_OVERRIDE

or explicitly set kubeconfig file,

go run main.go  --kubeconfig $HOME/.kube/EXPLICIT_KUBE_CONFIG_FILE.yaml

looks like a minor slip in passing parameters when calling NewClientSet.