Skip to content

Commit

Permalink
[Viewer] Service needs port name for istio (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy authored Apr 27, 2020
1 parent a94597f commit de0747e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/crd/controller/viewer/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func serviceFrom(v *viewerV1beta1.Viewer, deploymentName string) *corev1.Service
},
Ports: []corev1.ServicePort{
corev1.ServicePort{
Name: "http",
Protocol: corev1.ProtocolTCP,
Port: 80,
TargetPort: intstr.IntOrString{IntVal: viewerTargetPort}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ func TestReconcile_EachViewerCreatesAService(t *testing.T) {
}},
Spec: corev1.ServiceSpec{
Ports: []corev1.ServicePort{corev1.ServicePort{
Name: "http",
Protocol: corev1.ProtocolTCP,
Port: int32(80),
TargetPort: intstr.IntOrString{IntVal: viewerTargetPort},
Expand Down

0 comments on commit de0747e

Please sign in to comment.