Documentation
¶
Index ¶
- Variables
- func ExecInContainer(ctx context.Context, clientset *kubernetes.Clientset, config *rest.Config, ...) 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 PodSelectionPredicate
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMonitorCommand = "watch -n 1 rocm-smi"
Functions ¶
func ExecInContainer ¶
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 PodSelectionPredicate ¶
Click to show internal directories.
Click to hide internal directories.