| 229 | } |
| 230 | |
| 231 | foreach (const Service& service, services) { |
| 232 | // Each service is served by the first container providing the service. See |
| 233 | // `CSIPluginInfo` in `mesos.proto` for details. |
| 234 | foreach (const CSIPluginContainerInfo& container, info.containers()) { |
| 235 | if (container.services().end() != std::find( |
| 236 | container.services().begin(), |
| 237 | container.services().end(), |
| 238 | service)) { |
| 239 | serviceContainers[service] = |
| 240 | getContainerId(info, containerPrefix, container); |
| 241 | |
| 242 | break; |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | CHECK(serviceContainers.contains(service)) |
| 247 | << service << " not found for CSI plugin type '" << info.type() |
| 248 | << "' and name '" << info.name() << "'"; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 |
nothing calls this directly
no test coverage detected