8000
Skip to content

API: Add scope to metadata configuration API#14530

Merged
tomponline merged 6 commits intocanonical:mainfrom
kadinsayani:metadata-configuration-scope
Dec 2, 2024
Merged

API: Add scope to metadata configuration API#14530
tomponline merged 6 commits intocanonical:mainfrom
kadinsayani:metadata-configuration-scope

Conversation

@kadinsayani
Copy link
Copy Markdown
Member
@kadinsayani kadinsayani commented Nov 25, 2024

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.

@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Nov 25, 2024
@kadinsayani kadinsayani force-pushed the metadata-configuration-scope branch from 1b70509 to 7f42bed Compare November 25, 2024 22:26
@kadinsayani
Copy link
Copy Markdown
Member Author

cc. @edlerd

@kadinsayani kadinsayani force-pushed the metadata-configuration-scope branch 3 times, most recently from 791eff4 to 4869da3 Compare November 26, 2024 16:12
@kadinsayani kadinsayani changed the title Add scope to metadata configuration API Network: Add scope to metadata configuration API Nov 26, 2024
@kadinsayani kadinsayani marked this pull request as ready for review November 26, 2024 16:16
@kadinsayani kadinsayani changed the title Network: Add scope to metadata configuration API API: Add scope to metadata configuration API Nov 26, 2024
Copy link
Copy Markdown
Contributor
@markylaing markylaing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need @tomponline or @simondeziel to review the local/global-ness of the config keys but other than that I just have a couple of small nits :)

Comment thread doc/api-extensions.md Outdated
Comment thread shared/api/metadata_configuration.go Outdated
Comment thread lxd/network/driver_bridge.go
Comment thread lxd/network/driver_macvlan.go
Comment thread lxd/network/driver_macvlan.go
Comment thread lxd/network/driver_macvlan.go
@kadinsayani kadinsayani force-pushed the metadata-configuration-scope branch 2 times, most recently from 8a58825 to c49b172 Compare November 27, 2024 17:03
Comment thread lxd/storage/drivers/driver_powerflex.go Outdated
Comment thread lxd/storage/drivers/driver_powerflex_volumes.go Outdated
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
@kadinsayani kadinsayani force-pushed the metadata-configuration-scope branch from 8d6c853 to e4c3f93 Compare November 29, 2024 21:27
Copy link
Copy Markdown
Member
@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tomponline
Copy link
Copy Markdown
Member

@edlerd this will be in latest/edge soon.

@tomponline tomponline merged commit fbd4a6c into canonical:main Dec 2, 2024
@kadinsayani kadinsayani deleted the metadata-configuration-scope branch December 2, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Changes to the REST API Documentation Documentation needs updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metadata API to indicate cluster member specificity

4 participants

0