Skip to content

refactor: DryRunExpressions in builder.go #481

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

Merged
merged 3 commits into from
Apr 6, 2025

Conversation

michaelhtm
Copy link
Contributor

Refactoring the dryRunExpressions portion of builder.go

@michaelhtm michaelhtm force-pushed the refactor/dryrunexpressions branch from 90b007d to 0dac345 Compare April 4, 2025 17:22
@michaelhtm michaelhtm force-pushed the refactor/dryrunexpressions branch from 6e342cc to d581223 Compare April 4, 2025 18:14
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Neat, thanks a lot @michaelhtm !

Comment on lines +687 to +689
resourceIDs := maps.Keys(resources)
// We also want to allow users to refer to the instance spec in their expressions.
resourceNames = append(resourceNames, "schema")
conditionFieldNames := []string{"schema"}
resourceIDs = append(resourceIDs, "schema")
Copy link
Member

Choose a reason for hiding this comment

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

👍

@a-hilaly a-hilaly merged commit 876241c into kro-run:main Apr 6, 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