helper

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

func Cleanup(c *tfv1.TFJobSpec)

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.

Jump to

Keyboard shortcuts

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