Documentation ¶
Index ¶
- Constants
- func CreateKubeconfig(user, clusterName, serverURL string, caCert, clientCert, clientKey []byte) ([]byte, error)
- func WriteKubeconfigFiles(outDir string, cluster repository.Cluster) error
- type KubectlCluster
- type KubectlClusterWithName
- type KubectlConfig
- type KubectlContext
- type KubectlContextWithName
- type KubectlUser
- type KubectlUserWithName
Constants ¶
View Source
const ( SystemPrivilegedGroup = "system:masters" NodesGroup = "system:nodes" AllUnauthenticated = "system:unauthenticated" AllAuthenticated = "system:authenticated" Anonymous = "system:anonymous" APIServerUser = "system:apiserver" // core kubernetes process identities KubeProxy = "system:kube-proxy" KubeControllerManager = "system:kube-controller-manager" KubeScheduler = "system:kube-scheduler" )
taken from: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/authentication/user/user.go well-known user and group names
Variables ¶
This section is empty.
Functions ¶
func CreateKubeconfig ¶
func WriteKubeconfigFiles ¶
func WriteKubeconfigFiles(outDir string, cluster repository.Cluster) error
Types ¶
type KubectlCluster ¶
type KubectlClusterWithName ¶
type KubectlClusterWithName struct { Name string `json:"name"` Cluster KubectlCluster `json:"cluster"` }
type KubectlConfig ¶
type KubectlConfig struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` CurrentContext string `json:"current-context"` Clusters []*KubectlClusterWithName `json:"clusters"` Contexts []*KubectlContextWithName `json:"contexts"` Users []*KubectlUserWithName `json:"users"` }
borrowed from github.com/kubernetes/kops
type KubectlContext ¶
type KubectlContextWithName ¶
type KubectlContextWithName struct { Name string `json:"name"` Context KubectlContext `json:"context"` }
type KubectlUser ¶
type KubectlUserWithName ¶
type KubectlUserWithName struct { Name string `json:"name"` User KubectlUser `json:"user"` }
Click to show internal directories.
Click to hide internal directories.