Skip to content

Conversation

@komish
Copy link
Member

@komish komish commented Jan 16, 2026

The previous regular expression would search for the expected images declaration and then parse both horizontal and vertical space for the value of that key. This function intended on grabbing a value of a given yaml key, but by traversing vertical space, would grab a completely separate key and value of an object.

This replacement regular expression more accurately captures the intended behavior of evaluating a given line of a template and searching for the an image value. This is done by enabling multiline mode and searching strictly horizontal space in the line for the value of the image.

NOTE: A test case was added, and gofumpt took some issue with the resulting formatting, which is why some things have changed in the test that have nothing to do with the newly added test.

The previous regular expression would search for the expected images declaration and then parse both horizontal and
vertical space for the value of that key. This function intended on grabbing a value of a given yaml key, but by
traversing vertical space, would grab a completely separate key and value of an object.

This replacement regular expression more accurately captures the intended behavior of evaluating a given line of a
template and searching for the an image value. This is done by enabling multiline mode and searching strictly
horizontal space in the line for the value of the image.

Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
@github-actions
Copy link

Thanks for your pull request!

A maintainer will review this pull request and trigger functional testing by adding the ok-to-test label.

This comment was auto-generated by GitHub Actions.

@komish komish added the ok-to-test Used after code review to run E2E/integration tests. label Jan 16, 2026
@komish komish merged commit 6508387 into redhat-certification:main Jan 16, 2026
17 checks passed
@komish komish deleted the bugfix-image-parsing branch January 16, 2026 20:01
@github-actions github-actions bot removed the ok-to-test Used after code review to run E2E/integration tests. label Jan 16, 2026
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