/** * Returns a map indexed by service id of the services */ public static Map<String, ServiceSchema> toServiceMap(ServiceListSchema serviceSchema) { return toServiceMap(serviceSchema != null ? serviceSchema.getItems() : null); }
public static Map<String, ServiceSchema> getServiceMap(Kubernetes kubernetes) { return toServiceMap(kubernetes.getServices()); }