Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Add support for replacing an existing kv prefix with a new set #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phroggyy
Copy link

@phroggyy phroggyy commented Mar 6, 2019

This PR adds a new method ReplaceConfig that will remove any keys (for the source's prefix) that are not present in the new config. This is primarily to solve traefik/traefik#2093 – by adding this, we can make Traefik use ReplaceConfig instead.

This will have the desired effect of removing any stale keys (that can lead to Traefik picking up config that the user thinks is not present), while maintaining any existing keys.

@coveralls
Copy link

coveralls commented Mar 7, 2019

Coverage Status

Coverage decreased (-0.8%) to 82.578% when pulling 7be8d41 on phroggyy:feat-config-replace into f987d01 on containous:master.

@phroggyy phroggyy force-pushed the feat-config-replace branch from b148664 to 7be8d41 Compare March 7, 2019 11:10
@ldez ldez self-requested a review March 8, 2019 12:20
@phroggyy
Copy link
Author

@ldez any progress on getting this merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants