-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for v2 fields in CharmMeta (#1106)
Extends the `CharmMeta` and related objects to handle all fields in the [current specification](https://juju.is/docs/sdk/metadata-yaml), both loading from `metadata.yaml` and from [`charmcraft.yaml`] (https://juju.is/docs/sdk/charmcraft-yaml) (which is likely to happen when running unit tests). New fields: * `links`: * `websites` * `sources` * `issues` * `documentation` (this is "docs" in metadata.yaml, but "documentation" in charmcraft.yaml, and is a single string unlike the above, so "docs" seems misleading) * `assumes` `metadata.yaml` allows arbitrary fields, so leaving in fields that are not in the current specification (e.g. "tags", "series") seems ok and provides the most backwards compatibility. Also fleshes out `ContainerMeta` and adds `properties` to `StorageMeta`. Fixes #498.
- Loading branch information
1 parent
41a4ad4
commit dc47640
Showing
5 changed files
with
317 additions
and
27 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
Oops, something went wrong.