Documentation ¶
Index ¶
Constants ¶
const EnvName = "KUBECONFIG"
EnvName is the standard KubeConfig environment variable name. https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable
const FromClusterFormat = "%s-eks-a-cluster.kubeconfig"
FromClusterFormat defines the format of the kubeconfig of the
Variables ¶
This section is empty.
Functions ¶
func FromClusterName ¶
FromClusterName formats an expected Kubeconfig path for EKS-A clusters. This includes a subdirecftory named after the cluster name. For example, if the clusterName is 'sandbox' the generated path would be sandbox/sandbox-eks-a-cluster.kubeconfig
func FromEnvironment ¶
func FromEnvironment() string
FromEnvironment reads the KubeConfig path from the standard KUBECONFIG environment variable.
func NewMissingFileError ¶
NewMissingFileError creates a missing kubeconfig file error.
Types ¶
This section is empty.