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

Allows multi-level KV prefixes #6664

Merged
merged 3 commits into from Aug 11, 2020
Merged

Conversation

niki-timofe
Copy link
Contributor

What does this PR do?

Allows slashes in root key of KV-storages.

Motivation

We've got single KV storage shared across many of teams. Each team have its own directory in it. My team soon to have some separated Traefiks. So it would be cool, if we can separate configurations as:

team-a/traefik-1
team-a/traefik-2

There is no information about inadmissibility of slashes neither in documentation nor in logs, only message: "invalid root label". I see two possibilities of resolving this situation: add this constraint to documentation or add this feature.
As it's technically not too complex to implement, I chose 2nd variant.

More

  • Added/updated tests
  • Added/updated documentation

@jstdips
Copy link

jstdips commented Jul 15, 2020

It is possible to review and merge this PR? Will be helpful for us using Zookeeper as backend config store

@ldez ldez assigned ldez and unassigned jbdoumenjou Jul 28, 2020
@ldez ldez force-pushed the fix/kv-prefixes branch 2 times, most recently from 30151ca to 1be56ac Compare July 28, 2020 09:38
@ldez ldez changed the title Fix KV prefixes Allows multi-level KV prefixes Jul 28, 2020
@ldez ldez removed the bot/no-merge label Jul 29, 2020
@ldez ldez added this to the next milestone Jul 29, 2020
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit 449afea into traefik:master Aug 11, 2020
v2 automation moved this from To review to Done Aug 11, 2020
@niki-timofe niki-timofe deleted the fix/kv-prefixes branch August 11, 2020 15:47
@dacameron
Copy link

I can't see this in the latest release: v2.2.11. Any chance of seeing it soon? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

8 participants