Skip to content

Commit

Permalink
API: Add scope to metadata configuration API (#14530)
Browse files Browse the repository at this point in the history
Resolves #14125.

This PR adds `scope` to the metadata configuration API endpoint,
`/1.0/metadata/configuration`.

Summary of changes:
- Adds api extension, `metadata_configuration_scope`;
- Adds `Scope` field to `MetadataConfigurationConfigKey` struct;
- Adds `scope` to metadata for member specific config keys in
`lxd/network/driver_{bridge/macvlan/physical/sriov}.go`;
- Updates API docs and metadata.
  • Loading branch information
tomponline authored Dec 2, 2024
2 parents cf64979 + e4c3f93 commit fbd4a6c
Show file tree
Hide file tree
Showing 22 changed files with 630 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2523,3 +2523,7 @@ Adds support for using the Container Device Interface (CDI) specification to con
## `images_all_projects`

This adds support for listing images across all projects using the `all-projects` parameter in `GET /1.0/images` requests.

## `metadata_configuration_scope`

This adds scope metadata to `GET /1.0/metadata/configuration`. Options marked with a `global` scope are applied to all cluster members. Options with a `local` scope must be set on a per-member basis.
Loading

0 comments on commit fbd4a6c

Please sign in to comment.