Refresh Traefik static config instead of seeding it once - #943
Open
ilnytskyi wants to merge 1 commit into
Open
Conversation
${WARDEN_HOME_DIR}/etc/traefik/traefik.yml is generated configuration rather
than user state, but it was only copied into place when absent. After a Traefik
major upgrade some settings, such as the router rule syntax, have to be
adjusted globally for backward compatibility, and installs that already had the
file never received them.
Refresh it whenever it drifts from the shipped version, keeping the previous
copy as traefik.yml.bak, and restart Traefik afterwards since static
configuration is never hot reloaded.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improved traefik v2 to v3 BC handling after upgrade to v3: #925
Since recently, the v2 fixes on environments templates started to land like:
#940
#934
Although, actually all the envs templates must be moved to new labels syntax one day, the proper BC fix for now is to keep it global
${WARDEN_HOME_DIR}/etc/traefik/traefik.ymlin sync with${WARDEN_DIR}/config/traefik/traefik.ymlautomatically.If drift detected during environment
up start restartcurrent config at~/.wardenis backed up and new one is applied.