-
Bug
-
Resolution: Done
-
Minor
-
4.12.z, 4.12.0, 4.11.z, 4.10.z, 4.9.z, 4.8.z, 4.7.z, 4.6.z
-
Informational
-
None
-
ODC Sprint 228, ODC Sprint 229
-
2
-
Rejected
-
False
-
-
-
Bug Fix
-
Done
Description of problem:
Service list has a Location column that shows the used ports of the service. But it shows undefined:80 (port from the resource) when the Service has type: ExternalName or type: LoadBalancer
Version-Release number of selected component (if applicable):
4.6-4.12
How reproducible:
Always
Steps to Reproduce:
Create a Service with type: ExternalName or type: LoadBalancer, for example:
apiVersion: v1 kind: Service metadata: name: external-service spec: ports: - protocol: TCP port: 8000 targetPort: 8000 selector: app: nodeinfo-d type: ExternalName --- kind: Service apiVersion: v1 metadata: name: loadbalancer-service spec: clusterIP: 10.217.4.147 ports: - protocol: TCP port: 8000 targetPort: 8000 nodePort: 31799 type: LoadBalancer selector: app: nodeinfo-d
Open Administrator perspective > Networking > Services
Actual results:
Service list shows undefined:80 (port from the resource)
Expected results:
Service list should show just the port or more information for other Service types.
Additional info:
The Service details page uses a switch for .spec.type to show different information. See https://github.com/openshift/console/blob/7b741dd8898454cded10f6572fbebb1c4df1c8f9/frontend/public/components/service.jsx#L97-L125