Consolidate Manifest Deployment Steps in Deploy Template Workflow#27582
Merged
RachalCassity merged 5 commits intomasterfrom Apr 6, 2026
Merged
Consolidate Manifest Deployment Steps in Deploy Template Workflow#27582RachalCassity merged 5 commits intomasterfrom
RachalCassity merged 5 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the GitHub Actions deploy workflow template to consolidate how the manifests repo is updated with the new image tag and Datadog version/commit values across multiple environments.
Changes:
- Combine the previous per-environment update loops into a single loop over
dev,staging,prod, andsandbox. - Add logic to detect whether
values.yamlusesvets-api-parentvsvets-apias the chart key and update accordingly. - Keep a single
git diffoutput after applying allyqedits.
jweissman
reviewed
Apr 6, 2026
Contributor
There was a problem hiding this comment.
Looks good -- happy to approve but left some comments that might be good to reflect on. The only big-picture suggestion might be incorporating -e flag to set exit code (in which case we could add || exit 1 to bail if something is missing but you're handling that otherwise so maybe fine!)
jweissman
previously approved these changes
Apr 6, 2026
jweissman
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep your PR as a Draft until it's ready for Platform review. A PR is ready for Platform review when it has a teammate approval and tests, linting, and settings checks pass CI. See these tips on how to avoid common delays in getting your PR merged.
Summary
Two separate workflow steps that updated image tags and DataDog version secrets in the manifest repo have been merged into a single unified step.
Previously the workflow used two hardcoded steps — one targeting
devandstagingusing thevets-api-parentchart key, and a second targetingprodandsandboxusingvets-api. This was brittle because the chart key was assumed based on environment name rather than verified against the actualvalues.yaml.The new step iterates over all four environments and uses
yq'shas()function to detect which chart key is present in each environment'svalues.yamlat runtime, storing the results in variables rather than piping throughgrepto avoidpipefailinteraction issues. If both keys are found in the same file the workflow exits with a non-zero code rather than silently applying the wrong key. If neither key is found the environment is skipped with a warning.Expected behavior:
yqcommands across two steps into a single shared blockECR_REGISTRYandECR_REPOSITORYenv vars that were never referenced in therunblockRelated issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?