MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewParquetConverterWithConfigFile

Function NewParquetConverterWithConfigFile

integration/e2ecortex/services.go:211–240  ·  view source on GitHub ↗
(name string, store RingStore, address, configFile string, flags map[string]string, image string)

Source from the content-addressed store, hash-verified

209}
210
211func NewParquetConverterWithConfigFile(name string, store RingStore, address, configFile string, flags map[string]string, image string) *CortexService {
212 if configFile != "" {
213 flags["-config.file"] = filepath.Join(e2e.ContainerSharedDir, configFile)
214 }
215
216 // Configure the ingesters ring backend
217 flags["-ring.store"] = string(store)
218 switch store {
219 case RingStoreConsul:
220 flags["-consul.hostname"] = address
221 case RingStoreEtcd:
222 flags["-etcd.endpoints"] = address
223 }
224
225 if image == "" {
226 image = GetDefaultImage()
227 }
228
229 return NewCortexService(
230 name,
231 image,
232 e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{
233 "-target": "parquet-converter",
234 "-log.level": "warn",
235 }, flags))...),
236 e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299),
237 httpPort,
238 grpcPort,
239 )
240}
241
242func NewQueryFrontend(name string, flags map[string]string, image string) *CortexService {
243 return NewQueryFrontendWithConfigFile(name, "", flags, image)

Callers 1

NewParquetConverterFunction · 0.85

Calls 7

BuildArgsFunction · 0.92
MergeFlagsFunction · 0.92
NewHTTPReadinessProbeFunction · 0.92
GetDefaultImageFunction · 0.85
NewCortexServiceFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected