forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#17897 from barrettj12/rm-findtools
juju#17897 This PR adds a version 8 of the Client facade, which removes the `FindTools` method. This method has not been used by the client since 2.9. In 4.0, versions 6 and 7 of the Client facade will be removed, so only v8 will be supported. A lot of unused code was removed, including unused interfaces (Pool) and fields on the client. ## Checklist <!-- If an item is not applicable, use `~strikethrough~`. --> - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing - ~[ ] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing~ - [x] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages ## QA steps Client facade methods should still work as expected: - `WatchAll`: used by `wait-for` and bundle deploys - `StatusHistory`: used by `show-status-log` - `FullStatus`: used by `status` Bootstrap Juju and add a new model: ``` juju bootstrap aws aws juju add-model m ``` Deploy a bundle (any bundle) and check the deployment works as expected: ``` juju deploy landscape-dense ``` Check that `status` works: ``` juju status juju status --format json ``` Wait on one of the applications to check that `wait-for` works: ``` juju wait-for application haproxy ``` Test `show-status-log` on one of the units: ``` juju show-status-log haproxy/0 ``` ## Links **Jira card:** JUJU-6496
- Loading branch information
Showing
11 changed files
with
177 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright 2024 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
// Package client defines the Client facade, which is responsible for providing | ||
// status API methods to the Juju client. Older versions of the client facade | ||
// also provided the FindTools and WatchAll methods, but these are going away | ||
// in Juju 4. | ||
package client |
Oops, something went wrong.