staert icon indicating copy to clipboard operation
staert copied to clipboard

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

Open phroggyy opened this issue 6 years ago • 2 comments

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 https://github.com/containous/traefik/issues/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.

phroggyy avatar Mar 06 '19 21:03 phroggyy

Coverage Status

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

coveralls avatar Mar 07 '19 00:03 coveralls

@ldez any progress on getting this merged?

phroggyy avatar Apr 20 '19 15:04 phroggyy