generator

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

View Source
const (
	LabelGroupName = "group_name"
)

Variables

This section is empty.

Functions

func ContainChiefSpec

func ContainChiefSpec(tfJob *tfv1alpha2.TFJob) bool

func ConvertTFJobToUnstructured

func ConvertTFJobToUnstructured(tfJob *tfv1alpha2.TFJob) (*unstructured.Unstructured, error)

ConvertTFJobToUnstructured uses JSON to convert TFJob to Unstructured.

func GenDNSRecord

func GenDNSRecord(tfJobName, rtype, index, namespace string) string

func GenGeneralName

func GenGeneralName(tfJobName, rtype, index string) string

func GenLabels

func GenLabels(tfJobName string) map[string]string

func GenOwnerReference

func GenOwnerReference(tfjob *tfv1alpha2.TFJob) *metav1.OwnerReference

func GetPortFromTFJob

func GetPortFromTFJob(tfJob *tfv1alpha2.TFJob, rtype tfv1alpha2.TFReplicaType) (int32, error)

GetPortFromTFJob gets the port of tensorflow container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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