Skip to content

Commit

Permalink
Rename dask port from to (flyteorg#315)
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Stadlbauer <[email protected]>
Signed-off-by: Bernhard Stadlbauer <[email protected]>
  • Loading branch information
bstadlbauer authored Feb 13, 2023
1 parent 5e75228 commit 5981c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions go/tasks/plugins/k8s/dask/dask.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func createSchedulerSpec(cluster plugins.DaskScheduler, clusterName string, defa
Env: defaults.Env,
Ports: []v1.ContainerPort{
{
Name: "comm",
Name: "tcp-comm",
ContainerPort: 8786,
Protocol: "TCP",
},
Expand All @@ -268,10 +268,10 @@ func createSchedulerSpec(cluster plugins.DaskScheduler, clusterName string, defa
},
Ports: []v1.ServicePort{
{
Name: "comm",
Name: "tcp-comm",
Protocol: "TCP",
Port: 8786,
TargetPort: intstr.FromString("comm"),
TargetPort: intstr.FromString("tcp-comm"),
},
{
Name: "dashboard",
Expand Down
6 changes: 3 additions & 3 deletions go/tasks/plugins/k8s/dask/dask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func TestBuildResourceDaskHappyPath(t *testing.T) {
schedulerSpec := daskJob.Spec.Cluster.Spec.Scheduler.Spec
expectedPorts := []v1.ContainerPort{
{
Name: "comm",
Name: "tcp-comm",
ContainerPort: 8786,
Protocol: "TCP",
},
Expand All @@ -240,10 +240,10 @@ func TestBuildResourceDaskHappyPath(t *testing.T) {
}
expectedSerivcePorts := []v1.ServicePort{
{
Name: "comm",
Name: "tcp-comm",
Protocol: "TCP",
Port: 8786,
TargetPort: intstr.FromString("comm"),
TargetPort: intstr.FromString("tcp-comm"),
},
{
Name: "dashboard",
Expand Down

0 comments on commit 5981c35

Please sign in to comment.