Skip to content

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
@SteveL-MSFT SteveL-MSFT requested review from anmenaga and tgauth April 13, 2024 16:47
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
@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