Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultKaiwoCliConfigFileExists() (bool, error)
- func ExecInContainer(ctx context.Context, clientset *kubernetes.Clientset, config *rest.Config, ...) error
- func GetDefaultKaiwoCliConfigPath() (string, error)
- func GetKaiwoCliConfigPath(cliFlagsPath string) (string, error)
- func GetWorkload(ctx context.Context, k8sClient client.Client, workloadSelector string, ...) (common.KaiwoWorkload, error)
- func IsGPUPod(pod corev1.Pod) bool
- func OutputLogs(ctx context.Context, clientset *kubernetes.Clientset, podName string, ...) error
- func ParseCommand(command string) []string
- func ValidateCommand(command string) error
- type KaiwoCliConfig
- type PodSelectionPredicate
Constants ¶
View Source
const (
KaiwoCliConfigPathEnv = "KAIWOCONFIG"
)
Variables ¶
View Source
var DefaultMonitorCommand = "watch -n 1 rocm-smi"
Functions ¶
func ExecInContainer ¶
func GetKaiwoCliConfigPath ¶
func GetWorkload ¶
func OutputLogs ¶
func OutputLogs( ctx context.Context, clientset *kubernetes.Clientset, podName string, containerName string, tailLines int64, namespace string, follow bool, ) error
OutputLogs outputs logs for a given pod container to the standard output
func ParseCommand ¶
func ValidateCommand ¶
Types ¶
type KaiwoCliConfig ¶
type PodSelectionPredicate ¶
Click to show internal directories.
Click to hide internal directories.