Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cache types case insensitive #185

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

craigfurman
Copy link
Contributor

@craigfurman craigfurman commented Dec 14, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Make cache types case insensitive

This appears to be the case in thanos itself
(https://github.com/thanos-io/thanos/blob/master/pkg/queryfrontend/config.go#L81
and https://github.com/thanos-io/thanos/blob/master/pkg/store/cache/factory.go#L45).

The thanos docs use upper-case cache types.

Previously, using an upper-case string "MEMCACHED" for memcached caches would work fine, except that the user would not inherit the kube-thanos defaults for memcached configs.

Verification

I ran make generate validate, and have tried pulling in this branch to a development environment to validate that it works.

This appears to be the case in thanos itself
(https://github.com/thanos-io/thanos/blob/master/pkg/queryfrontend/config.go#L81
and https://github.com/thanos-io/thanos/blob/master/pkg/store/cache/factory.go#L45).

The thanos docs use upper-case cache types.

Signed-off-by: Craig Furman <craig.furman89@gmail.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🥇 Thanks for your contribution.

@kakkoyun kakkoyun merged commit b50112c into thanos-io:master Jan 4, 2021
@craigfurman craigfurman deleted the case-insensitive-caches branch January 4, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants