Documentation ¶
Index ¶
- Constants
- func GenerateAuthInfoAdminName(cpName string) string
- func GenerateClusterName(cpName string) string
- func GenerateContextName(cpName string) string
- func GenerateKubeConfigSecret(ctx context.Context, certs *Certs, conf *ConfigGen) (*v1.Secret, error)
- func GenerateKubeconfigBytes(conf *ConfigGen) ([]byte, error)
- type Certs
- type ConfigGen
- type ConfigTarget
Constants ¶
View Source
const ( Admin ConfigTarget = iota ControllerManager AdminInCluster DefaultNamespace = "default" AdminCN = "kubernetes-admin" Organization = "system:masters" ContrCMCN = "system:kube-controller-manager" CMConfSecret = "cm-kubeconfig" )
View Source
const (
CertsSecretName = "k8s-certs"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateClusterName ¶
func GenerateContextName ¶
func GenerateKubeconfigBytes ¶ added in v0.2.4
Types ¶
type ConfigTarget ¶
type ConfigTarget int
Click to show internal directories.
Click to hide internal directories.