Description
Describe the bug
V1.14.1 for cortex throws an error when using distributor HA tracker with inmemoery ring and stops them from running.
error validating config: invalid distributor config: invalid HATracker KV store type: inmemory
I believe the error comes from this PR: #4881
To Reproduce
Steps to reproduce the behavior:
- Start Cortex v1.14.1
- Have configuration for distributor as follows:
distributor:
ha_tracker:
enable_ha_tracker: true
kvstore:
store: inmemory
Expected behavior
Since docs mention inmemory as an option for the HAtracker store: https://cortexmetrics.io/docs/configuration/arguments/#ringha-tracker-store
https://cortexmetrics.io/docs/configuration/configuration-file/#distributor_config
It should not be validating against it and this list should accept consul, etcd or inmemory as valid values.
https://github.com/cortexproject/cortex/blob/v1.14.1/pkg/distributor/ha_tracker.go#L92
Environment:
- Infrastructure:
Kubernetes v1.23
- Deployment tool:
Helm
Additional Context
We were running v1.11.1 with this configuration and it was working fine. I do not see any changelog mentioning breaking change where inmemory would not be supported so this seems like regression and bad validation in my opinion. But please correct me if i am not understanding it correctly.