-
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#16659 from tlm/model-config-api
juju#16659 With this change we are introducing the ability to bootstrap cloud model defaults at agent bootstrap. This is needed as the Juju client sends a set of cloud defaults to agent bootstrap for persistence as part of the running controller. We only save these defaults for the controller cloud and they will only ever be used for models that use the same cloud. This PR does not: - Do model cloud region defaults yet. ## Checklist - [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~ - ~[ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~ ## QA steps This code is currently not being used in a read only context so we only need to make sure that a successful bootstrap can take place at the moment. It is the same code path for lxd and k8's so bootstrap to either cloud and confirm through the debug logs that no errors occur. ## Documentation changes N/A ## Links **Jira card:** JUJU-5112
- Loading branch information
Showing
8 changed files
with
427 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2023 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
package errors | ||
|
||
import ( | ||
"github.com/juju/errors" | ||
) | ||
|
||
const ( | ||
// NotFound describes an error that occurs when the cloud being operated on | ||
// does not exist. | ||
NotFound = errors.ConstError("cloud not found") | ||
) |
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
Oops, something went wrong.