Skip to content
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

run config-change hook when caas pod address changes #8514

Merged
merged 1 commit into from Mar 21, 2018

Conversation

wallyworld
Copy link
Member

@wallyworld wallyworld commented Mar 21, 2018

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

Copy link
Contributor

@anastasiamac anastasiamac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/

state/watcher.go Outdated

var _ Watcher = (*containerAddressesWatcher)(nil)

// WatchContainerAddresses returns a new NotifyWatcher watching u's pod address(es).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather see "unit's' here than "u's" being a comment and all ... :D

@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit 0764353 into juju:develop Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants