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
[dev] Include exposed endpoints in diff bundle output #12025
[dev] Include exposed endpoints in diff bundle output #12025
Conversation
apiserver/allfacades.go
Outdated
@@ -175,7 +175,8 @@ func AllFacades() *facade.Registry { | |||
reg("Charms", 3, charms.NewFacadeV3) | |||
reg("Cleaner", 2, cleaner.NewCleanerAPI) | |||
reg("Client", 1, client.NewFacadeV1) | |||
reg("Client", 2, client.NewFacade) | |||
reg("Client", 2, client.NewFacadeV2) | |||
reg("Client", 3, client.NewFacade) |
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.
This pattern where the base is the latest version feels really odd!
a2e4227
to
459fe3b
Compare
@SimonRichardson I have rebased this PR to include the IPV6 changes that landed on develop and updated the QA steps accordingly. |
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.
I'm not sure of the rules around Client facades, the code looks fine though and Q&A went well, so until I get clarification about it, I'm just going to leave a comment for now.
This test was supposed to land together with commit d1b5f22 but was unfortunately skipped.
The new version of bundlechanges includes exposed endpoints when diffing bundles and models.
The new field is optional and not used by older controllers so we can avoid bumping the Client facade version.
459fe3b
to
8e05264
Compare
The PR has been updated to revert the versioning changes and instead just add an extra field (with omitempty) to the existing payload. |
|
Description of change
This PR ensures that the
juju diff-bundle
command reports exposed endpoint differences in its output.The diff-bundle logic fetches an overview of the model from the controller via the
FullStatus
method of theClient
facade. Its response payload (ApplicationStatus) has been augmented with an extra, optional field to report the set of expose settings (if any) for the application endpoints.QA steps