-
Notifications
You must be signed in to change notification settings - Fork 27
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
externalize traefik container and config management #269
Conversation
…l/traefik-k8s-operator into manifest-refactor/traefik-class
Two yamls for the same app, one with http (relation was previously removed), one with https:
After manually deleting, it works Bundle:
|
The bug you found is real, but I don't think that's a regression. I've seen that in the past. I think it's because the ipa requirer misses an observer for relation-departed. Adding that to the mix, and let's see if we can make this pass. By the way, hadn't we made the same fix to IPA? I guess we forgot to port it to IPU as well? |
I think that in this context, a bug in the requirer side of things shouldn't matter to the provider side: the provider gets a relation event from juju that should have resulted in deleting the stale file. I'm guessing it's 888's fault. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I've only added to minor suggestions.
…l/traefik-k8s-operator into manifest-refactor/traefik-class
Issue
The traefik's charm code is somewhat outdated and needed some freshening up.
Adopting some more modern charming patterns is the start of that process.
Solution
In this PR we add a Traefik class that takes care of all pebble interactions and all traefik-workload-specific configuration tasks.
This way the charm can be unaware of:
The charm remains responsible for:
Context
A next PR will add a manifest-driven filesystem manager, to prevent unnecessary pushes/restarts unless the backing juju state 'really' has changed.
Testing Instructions
We're going to need careful testing especially in combination with the TLS bundle to catch regressions.
Release Notes