Documentation ¶
Index ¶
- Constants
- func GenerateKubeContextName(installationCodeName string) string
- func GetAuthProvider(config *clientcmdapi.Config, contextName string) (*clientcmdapi.AuthProviderConfig, bool)
- func GetCodeNameFromKubeContext(c string) string
- func GetKubeCertFilePath(clusterName string) (string, error)
- func GetKubeCertPath(clusterName string) (string, error)
- func IsCodeName(s string) bool
- func IsKubeContext(s string) bool
- func WriteCertificate(cert, clusterName string, fs afero.Fs) error
Constants ¶
View Source
const (
CertFileName = "k8s-ca.crt"
)
View Source
const (
ContextPrefix = "gs-"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateKubeContextName ¶ added in v0.5.5
GenerateKubeContextName creates a context name, from an installation's code name.
func GetAuthProvider ¶
func GetAuthProvider(config *clientcmdapi.Config, contextName string) (*clientcmdapi.AuthProviderConfig, bool)
GetAuthProvider fetches the authentication provider from kubeconfig, for a desired context name.
func GetCodeNameFromKubeContext ¶ added in v0.5.5
GetCodeNameFromKubeContext gets an installation's code name, by knowing the context used to reference it.
func GetKubeCertFilePath ¶
func GetKubeCertPath ¶
func IsCodeName ¶ added in v0.5.5
IsCodeName checks whether a provided name is an installation's code name.
func IsKubeContext ¶ added in v0.5.5
IsKubeContext checks whether the name provided, matches our pattern for naming kubernetes contexts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.