Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsOwner ¶
func AsOwner(tfJob *tfv1.TFJob) metav1.OwnerReference
AsOwner make OwnerReference according to the parameter
func CRDName ¶
func CRDName() string
CRDName returns the custom resource definition name which is combination of kind and group
func Cleanup ¶
Cleanup cleans up user passed spec, e.g. defaulting, transforming fields. TODO: move this to admission controller
func ConfigureAcceleratorsForTFJobSpec ¶
func ConfigureAcceleratorsForTFJobSpec(c *tfv1.TFJobSpec, accelerators map[string]tfv1.AcceleratorConfig) error
ConfigureAcceleratorsForTFJobSpec adds any accelerator specific configuration to the pods.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.