-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeeds TriagePartner-WinGet
Milestone
Description
Summary of the new feature / enhancement
Admins may want to blast out configurations and have it only apply if the config is applicable via assertions. Having it as a dedicated section in the config makes it easy to understand what is being tested and you don't have to declare dependsOn for it as it would always be run first. In this case, if any assertion fails it would stop deployment immediately. One question is whether we need to assert(false) instead of always assuming assert(true).
Proposed technical implementation details (optional)
# assertions would always be processed first
# all asserts must be true otherwise an error is returned
# collect and return all assertions and don't fail on first false
assertions:
resources:
- type: Microsoft/OSInfo
properties:
family: Windows
- type: Foo/Bar
properties:
hello: world
resources:
- type: Microsoft.Windows/Registry
properties:
keyPath: HKCU/Environment
_exist: trueReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeeds TriagePartner-WinGet
Type
Projects
Status
Reviewed