github.com/kubeflow/training-operator@v1.7.0/pkg/controller.v1/expectation/util.go (about)

     1  package expectation
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  // GenExpectationPodsKey generates an expectation key for pods of a job
     8  func GenExpectationPodsKey(jobKey string, replicaType string) string {
     9  	return jobKey + "/" + strings.ToLower(replicaType) + "/pods"
    10  }
    11  
    12  // GenExpectationPodsKey generates an expectation key for services of a job
    13  func GenExpectationServicesKey(jobKey string, replicaType string) string {
    14  	return jobKey + "/" + strings.ToLower(replicaType) + "/services"
    15  }