Skip to content

Add componentNames field to VolatileCriteria - #21

Merged
joejstuart merged 2 commits into
conforma:mainfrom
Acepresso:exclude-components-EC-1513
Dec 10, 2025
Merged

joejstuart merged 2 commits into
conforma:mainfrom
Acepresso:exclude-components-EC-1513

Conversation

@Acepresso

@Acepresso Acepresso commented Nov 18, 2025 •

Copy link
Copy Markdown
Contributor

Add an optional componentNames field to allow filtering volatile config include/exclude rules by component name from ApplicationSnapshot.

Example usage:

  volatileConfig:
    exclude:
      - value: "lint.has_failures"
        componentNames: ["component1", "component2"]

Also added: enforce that only one of imageUrl, imageDigest, imageRef, or
componentNames can be set in volatileConfig criteria.

Ref: https://issues.redhat.com/browse/EC-1513
Assisted-by: Cursor (using claude-4.5-sonnet)

@Acepresso
Acepresso force-pushed the exclude-components-EC-1513 branch from e32348d to e000436 Compare November 19, 2025 09:55
@Acepresso
Acepresso force-pushed the exclude-components-EC-1513 branch from e000436 to 82f48d6 Compare December 3, 2025 15:36
@Acepresso
Acepresso marked this pull request as ready for review December 3, 2025 15:38
@Acepresso
Acepresso force-pushed the exclude-components-EC-1513 branch from 2a01096 to 0b798ee Compare December 4, 2025 12:08
Add an optional componentNames field to allow filtering volatile config
include/exclude rules by component name from ApplicationSnapshot.

Example usage:

```
  volatileConfig:
    exclude:
      - value: "lint.has_failures"
        componentNames: ["component1", "component2"]
```

Ref: https://issues.redhat.com/browse/EC-1513
Assisted-by: Cursor (using claude-4.5-sonnet)
Enforce that only one of imageUrl, imageDigest, imageRef, or
componentNames can be set in volatileConfig criteria. This prevents
ambiguous image targeting in policy exclusions/inclusions.
@Acepresso
Acepresso force-pushed the exclude-components-EC-1513 branch from 0b798ee to 821261d Compare December 4, 2025 13:17
@joejstuart
joejstuart merged commit b5b198b into conforma:main Dec 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants