(name, configFile string, flags map[string]string, image string)
| 272 | } |
| 273 | |
| 274 | func NewQuerySchedulerWithConfigFile(name, configFile string, flags map[string]string, image string) *CortexService { |
| 275 | if configFile != "" { |
| 276 | flags["-config.file"] = filepath.Join(e2e.ContainerSharedDir, configFile) |
| 277 | } |
| 278 | |
| 279 | if image == "" { |
| 280 | image = GetDefaultImage() |
| 281 | } |
| 282 | |
| 283 | return NewCortexService( |
| 284 | name, |
| 285 | image, |
| 286 | e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{ |
| 287 | "-target": "query-scheduler", |
| 288 | "-log.level": "warn", |
| 289 | }, flags))...), |
| 290 | e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299), |
| 291 | httpPort, |
| 292 | grpcPort, |
| 293 | ) |
| 294 | } |
| 295 | |
| 296 | func NewCompactor(name string, consulAddress string, flags map[string]string, image string) *CortexService { |
| 297 | return NewCompactorWithConfigFile(name, consulAddress, "", flags, image) |
no test coverage detected