Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Add support for changing request data #8

Merged
merged 2 commits into from Nov 21, 2022
Merged

Conversation

Cynerva
Copy link
Contributor

@Cynerva Cynerva commented Nov 16, 2022

Partial fix for https://bugs.launchpad.net/bugs/1915557

For the provides side: Add the all_requests property so that azure-integrator can access requests that have already been processed, and refresh them with new cloud data.

For the requires side: Watch for cloud data changes and set the endpoint.azure.ready.changed flag so that kubernetes-control-plane and kubernetes-worker can react to it.

toggle_flag(self.expand_name('ready'), self.is_ready)
if self.is_ready and was_ready and self.is_changed:
Copy link

Choose a reason for hiding this comment

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

ready.changed seems it should be set when

not self.is_ready() and was_ready or self.is_ready() and not was_ready

is that the intent of ready.changed?

i'm confused what this flag does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code was taken straight from interface-openstack-integration here

The ready.changed flag indicates that the relation data has changed, while the charm was and still is ready.

Seems weird to me too but I'm trying to keep it consistent with the established pattern. shrugs

Copy link

Choose a reason for hiding this comment

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

i'll take it!

Copy link

@kwmonroe kwmonroe left a comment

Choose a reason for hiding this comment

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

LGTM

@kwmonroe kwmonroe merged commit efa435f into master Nov 21, 2022
@kwmonroe kwmonroe deleted the gkk/fix-config-change branch November 21, 2022 05:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants