Documentation ¶
Index ¶
- Constants
- func ContainChiefSpec(tfJob *tfv1alpha2.TFJob) bool
- func ConvertTFJobToUnstructured(tfJob *tfv1alpha2.TFJob) (*unstructured.Unstructured, error)
- func GenDNSRecord(tfJobName, rtype, index, namespace string) string
- func GenGeneralName(tfJobName, rtype, index string) string
- func GenLabels(tfJobName string) map[string]string
- func GenOwnerReference(tfjob *tfv1alpha2.TFJob) *metav1.OwnerReference
- func GetPortFromTFJob(tfJob *tfv1alpha2.TFJob, rtype tfv1alpha2.TFReplicaType) (int32, error)
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 GenGeneralName ¶
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.
Click to show internal directories.
Click to hide internal directories.