Skip to content

Conversation

@jsbroks
Copy link
Member

@jsbroks jsbroks commented Jan 16, 2026

Standardize Go templating variable casing to lowercase across all templating surfaces.

Previously, Go templating variables had inconsistent casing (e.g., {{.Resource.Name}} in ArgoCD vs. {{.resource.name}} in verification), leading to confusion and potential errors. This change standardizes all templatable variables to lowercase for consistency.


Open in Cursor Open in Web

This change standardizes all Go templating variables across the system
to use lowercase consistently (e.g., {{.resource.name}}) instead of the
previous inconsistent casing.

Changes:
- Added Map() method to TemplatableJob that converts the struct to a
  map[string]any using JSON marshaling, ensuring consistent lowercase
  field names as defined by JSON tags
- Updated ArgoCD dispatcher to use Map() for template execution
- Updated Terraform Cloud dispatcher to use Map() for template execution
- Updated all related tests to use lowercase template variables

This brings ArgoCD/Terraform templating in line with verification
templating which already used lowercase variables.

Closes #738

Co-authored-by: justin <justin@wandb.com>
@cursor
Copy link

cursor bot commented Jan 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jsbroks jsbroks closed this 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.

3 participants