mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
refactor services to v1beta3
This commit is contained in:
@@ -155,8 +155,8 @@ func (d *ServiceDescriber) Describe(namespace, name string) (string, error) {
|
||||
return tabbedString(func(out *tabwriter.Writer) error {
|
||||
fmt.Fprintf(out, "Name:\t%s\n", service.Name)
|
||||
fmt.Fprintf(out, "Labels:\t%s\n", formatLabels(service.Labels))
|
||||
fmt.Fprintf(out, "Selector:\t%s\n", formatLabels(service.Selector))
|
||||
fmt.Fprintf(out, "Port:\t%d\n", service.Port)
|
||||
fmt.Fprintf(out, "Selector:\t%s\n", formatLabels(service.Spec.Selector))
|
||||
fmt.Fprintf(out, "Port:\t%d\n", service.Spec.Port)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ func printReplicationControllerList(list *api.ReplicationControllerList, w io.Wr
|
||||
|
||||
func printService(svc *api.Service, w io.Writer) error {
|
||||
_, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%d\n", svc.Name, labels.Set(svc.Labels),
|
||||
labels.Set(svc.Selector), svc.PortalIP, svc.Port)
|
||||
labels.Set(svc.Spec.Selector), svc.Spec.PortalIP, svc.Spec.Port)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user