Simple Package for connecting to a Kubernetes Cluster, because I am tired of copy-pasting the same lines over and over :)
Usage
ConnectToCluster() returns a Kubernetes Clientset. You can specify whether to use the local kubeconfig file or an in-cluster-config by passing the --local flag when running your program.
ConnectToCluster connects to a Kubernetes cluster. It can connect either via a local kubeconfig file or from within a Pod itself
It switches between the two by registering a --local flag