mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
Part 2 of plural ports: make endpoints a struct
Includes conversions for v1b[12] and tests and fixups for call sites.
This commit is contained in:
@@ -269,7 +269,7 @@ func (d *ServiceDescriber) Describe(namespace, name string) (string, error) {
|
||||
fmt.Fprintf(out, "Labels:\t%s\n", formatLabels(service.Labels))
|
||||
fmt.Fprintf(out, "Selector:\t%s\n", formatLabels(service.Spec.Selector))
|
||||
fmt.Fprintf(out, "Port:\t%d\n", service.Spec.Port)
|
||||
fmt.Fprintf(out, "Endpoints:\t%s\n", stringList(endpoints.Endpoints))
|
||||
fmt.Fprintf(out, "Endpoints:\t%s\n", formatEndpoints(endpoints.Endpoints))
|
||||
if events != nil {
|
||||
describeEvents(events, out)
|
||||
}
|
||||
|
Reference in New Issue
Block a user