utils

package
v0.0.0-...-4c17ca5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 kubectl can use kubeconfig we've created for it

func CheckKubectlVersion

func CheckKubectlVersion(env []string) error

CheckKubectlVersion checks version of kubectl

func HasGPUInstanceType

func HasGPUInstanceType(instanceTypes []string) bool

HasGPUInstanceType returns true if it finds a gpu instance among the mixed instances

func IsGPUInstanceType

func IsGPUInstanceType(instanceType string) bool

IsGPUInstanceType returns tru of the instance type is GPU optimised.

Types

This section is empty.

Directories

Path Synopsis
Package ipnet wraps net.IPNet to get CIDR serialization.
Package ipnet wraps net.IPNet to get CIDR serialization.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL