workloadrun

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWorkflowSpec

func BuildWorkflowSpec(
	run *nvcrev1alpha1.WorkloadRun,
	gpusPerNode, mlnxPerNode int32, enableMNNVL bool, frameworkType string,
) (*nvcrev1alpha1.WorkflowSpec, error)

BuildWorkflowSpec constructs a WorkflowSpec from a WorkloadRun (shared logic between controller and CLI).

It returns an error when the workload-object labels cannot be composed — for example when workloadMetadata names the gang scheduler's queue key with a different queue than gangScheduler configures.

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the "workloadrun" cobra command.

Types

type WorkloadRunStatusOutput

type WorkloadRunStatusOutput struct {
	Name        string   `json:"name"`
	Namespace   string   `json:"namespace"`
	Status      string   `json:"status"`
	FailedNodes []string `json:"failedNodes,omitempty"`
}

WorkloadRunStatusOutput is the JSON output for nvcrectl workloadrun status.

Jump to

Keyboard shortcuts

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