Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add protocol to service.status
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey committed Nov 4, 2023
1 parent 0579f02 commit c7ebc6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/service/service_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ func (r *serviceReconciler) updateServiceStatus(ctx context.Context, lbDNS strin
if svc.Annotations[service.LoadBalancerAllocatingPortKey] == "true" {
for _, port := range svc.Spec.Ports {
ingress.Ports = append(ingress.Ports, corev1.PortStatus{
Port: port.NodePort,
Port: port.NodePort,
Protocol: port.Protocol,
})
}
}
Expand Down

0 comments on commit c7ebc6e

Please sign in to comment.