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

Method initTenantDeletionAPI

pkg/cortex/modules.go:857–866  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

855}
856
857func (t *Cortex) initTenantDeletionAPI() (services.Service, error) {
858 // t.RulerStorage can be nil when running in single-binary mode, and rule storage is not configured.
859 tenantDeletionAPI, err := purger.NewTenantDeletionAPI(t.Cfg.BlocksStorage, t.OverridesConfig, util_log.Logger, prometheus.DefaultRegisterer)
860 if err != nil {
861 return nil, err
862 }
863
864 t.API.RegisterTenantDeletion(tenantDeletionAPI)
865 return nil, nil
866}
867
868func (t *Cortex) initQueryScheduler() (services.Service, error) {
869 if t.Cfg.TenantFederation.Enabled && t.Cfg.TenantFederation.RegexMatcherEnabled {

Callers

nothing calls this directly

Calls 2

NewTenantDeletionAPIFunction · 0.92

Tested by

no test coverage detected