Documentation
¶
Index ¶
- func CheckAllCommands(kubeconfigPath string, isContextSet bool, contextName string, env []string) error
- func CheckKubectlVersion(env []string) error
- func ClusterName(a, b string) string
- func DetectAuthenticator() string
- func ExpandPath(p string) string
- func FileExists(path string) (bool, error)
- func IsGPUInstanceType(instanceType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAllCommands ¶
func CheckAllCommands(kubeconfigPath string, isContextSet bool, contextName string, env []string) error
CheckAllCommands check version of kubectl, and if it can be used with either of the authenticator commands; most importantly it validates if kubeclt can use kubeconfig we've created for it
func CheckKubectlVersion ¶
CheckKubectlVersion checks version of kubectl
func ClusterName ¶
ClusterName generates a name string when a and b are empty strings. If either a or b are non-empty, it returns whichever is non-empty. If neither a nor b are empty, it returns empty name, to indicate ambiguous usage.
func DetectAuthenticator ¶
func DetectAuthenticator() string
DetectAuthenticator finds the authenticator command, it defaults to legacy command when neither are found
func FileExists ¶
FileExists checks to see if a file exists.
func IsGPUInstanceType ¶
IsGPUInstanceType returns tru of the instance type is GPU optimized.
Types ¶
This section is empty.