Add config file support to deployment gate command#2339
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
GabrielAnca
force-pushed
the
gabriel.anca/add-jit-gates-support
branch
from
June 4, 2026 10:33
dc65ea3 to
e004ad8
Compare
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Aaron-9900
approved these changes
Jun 4, 2026
Drarig29
reviewed
Jun 4, 2026
Co-authored-by: Corentin Girard <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: Corentin Girard <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
GabrielAnca
force-pushed
the
gabriel.anca/add-jit-gates-support
branch
from
June 4, 2026 14:44
e8f8931 to
db92ebd
Compare
Drarig29
approved these changes
Jun 4, 2026
OliviaShoup
approved these changes
Jun 4, 2026
This was referenced Jun 8, 2026
GabrielAnca
commented
Jun 11, 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.
The deployment gate command only supports pre-created gates, where rules must be configured in Datadog ahead of time. This PR adds a
--config-fileoption that accepts a path to a JSON file containing inline rule definitions, allowing gates to be evaluated without requiring any prior setup in Datadog.Passing configuration via a JSON file is the standard pattern in this CLI for structured input (used by synthetics, SBOM, and others) — it avoids shell escaping of complex nested objects and keeps deployment config readable alongside the code.
When provided, the parsed configuration is included in the evaluation request. The command validates that the file exists, is valid JSON, and contains a non-empty
rulesarray before proceeding.