Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxK8sNameLen is the Kubernetes DNS-1123 label limit. MaxK8sNameLen = 63 // MaxWorkloadNameLen is the safe max for TrainJob names, // leaving room for JobSet pod suffixes. The longest replicatedJob name // is "launcher", giving suffix "-launcher-{N}-{hash}" ~18 chars. MaxWorkloadNameLen = 44 // MaxJobNameLen is the safe max for Job names, // leaving room for the "-workload" suffix (9 chars). MaxJobNameLen = 35 // MaxWorkflowNameLen is the safe max for Workflow names, // leaving room for "-job" (4 chars) + "-workload" (9 chars) downstream. MaxWorkflowNameLen = 31 )
Variables ¶
This section is empty.
Functions ¶
func ExtractHash ¶
ExtractHash returns the trailing hash from a Truncate'd name. e.g., "gpu-cluster-cert-communic-873b9" → "873b9". If the name has no hash (no hyphen or too short), returns a computed hash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.