Skip to content

Commit

Permalink
Fix the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw committed Aug 12, 2020
1 parent e0ef86b commit f5c428d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller.v1/tensorflow/tensorflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ func genClusterSpec(tfjob *tfv1.TFJob) (ClusterSpec, error) {
// which maybe different between kubernetes clusters.
hostName := jobcontroller.GenGeneralName(tfjob.Name, rt, fmt.Sprintf("%d", i))
svcName := hostName + "." + tfjob.Namespace + "." + "svc"
cluserDomain := os.Getenv(EnvCustomClusterDomain)
if len(cluserDomain) > 0 {
svcName += "." + cluserDomain
clusterDomain := os.Getenv(EnvCustomClusterDomain)
if len(clusterDomain) > 0 {
svcName += "." + clusterDomain
}

endpoint := fmt.Sprintf("%s:%d", svcName, port)
Expand Down

0 comments on commit f5c428d

Please sign in to comment.