run config-change hook when caas pod address changes #8514
Merged
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.
Description of change
When a caas pod address changes, we run the config-change hook for the unit.
Add a new container address watcher based on the existing machine address watcher and its tests.
Also, there's now no longer a need in the uniter remote state to only use address watcher with IAAS models.
Also do a drive by fix for CAAS meterstatus which was unable to be tested live previously due to an upstream k8s bug.
QA steps
deploy a caas charm
stop a pod and let it restart
check the config-changed hook is run