Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add metadata to configuration result output #405

Merged
merged 8 commits into from
Apr 15, 2024

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Apr 13, 2024

PR Summary

Use metadata to add execution information as part of result. Resource execution now also includes the duration of execution. Resource version will be a top level property in a separate PR.

image

PR Context

FIx #401

@SteveL-MSFT SteveL-MSFT added Doc-Impact Schema-Impact Change requires updating a canonical schema for configs or manifests labels Apr 13, 2024
Copy link
Collaborator

@tgauth tgauth left a comment

Choose a reason for hiding this comment

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

LGTM

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Apr 15, 2024
Merged via the queue into PowerShell:main with commit e57fac8 Apr 15, 2024
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the result-metadata branch April 15, 2024 18:31
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 16, 2024
This changes defines the metadata properties that DSC returns in the
results for the `dsc config *` commands, as implemented in PowerShell#405.

It defines each metadata property as a separate file in a new folder
for metadata schemas for easier reuse, as well as two definitions
of the `metadata` property used across different result objects, one
for the top-level of a configuration and one for resource instances
in that result.

This change also required a minor fix to the build script to account
for array items that are objects solely defined by a `$ref` keyword
and to find and compose schemas from the new `metadata` folder.

The change includes the rename for the `requiredSecurityContext`
metadata property to `securityContext`.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 18, 2024
This changes defines the metadata properties that DSC returns in the
results for the `dsc config *` commands, as implemented in PowerShell#405.

It defines each metadata property as a separate file in a new folder
for metadata schemas for easier reuse, as well as two definitions
of the `metadata` property used across different result objects, one
for the top-level of a configuration and one for resource instances
in that result.

This change also required a minor fix to the build script to account
for array items that are objects solely defined by a `$ref` keyword
and to find and compose schemas from the new `metadata` folder.

The change includes the rename for the `requiredSecurityContext`
metadata property to `securityContext`.
michaeltlombardi added a commit to michaeltlombardi/DSC that referenced this pull request Apr 18, 2024
This changes defines the metadata properties that DSC returns in the
results for the `dsc config *` commands, as implemented in PowerShell#405.

It defines each metadata property as a separate file in a new folder
for metadata schemas for easier reuse, as well as two definitions
of the `metadata` property used across different result objects, one
for the top-level of a configuration and one for resource instances
in that result.

This change also required a minor fix to the build script to account
for array items that are objects solely defined by a `$ref` keyword
and to find and compose schemas from the new `metadata` folder.

The change includes the rename for the `requiredSecurityContext`
metadata property to `securityContext`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc-Impact Schema-Impact Change requires updating a canonical schema for configs or manifests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include metadata in result objects
2 participants