Skip to content

Add fail-fast check when trying to use chart v1 with Dependency-Track v5#352

Merged
nscuro merged 1 commit into
mainfrom
v5-fail-fast
Jun 3, 2026
Merged

Add fail-fast check when trying to use chart v1 with Dependency-Track v5#352
nscuro merged 1 commit into
mainfrom
v5-fail-fast

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented Jun 3, 2026

The chart is not compatible with DT v5. The v5-compatible chart will bump a major version. This is just a safety mechanism to prevent accidental breakage of deployments when users blindly bump the DT version.

Note that this does not and can not catch cases where v5 images are referenced by sha256 digest.

The chart is not compatible with DT v5. The v5-compatible chart will bump a major version. This is just a safety mechanism to prevent accidental breakage of deployments when users blindly bump the DT version.

Note that this does not and can not catch cases where v5 images are referenced by sha256 digest.

Signed-off-by: nscuro <nscuro@protonmail.com>
Copilot AI review requested due to automatic review settings June 3, 2026 19:09
@nscuro nscuro requested a review from a team as a code owner June 3, 2026 19:09
@nscuro nscuro added the enhancement New feature or request label Jun 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a fail-fast guard in the Dependency-Track Helm chart to prevent users from deploying Dependency-Track v5 images with the current chart major version, reducing the risk of accidental production breakage when bumping image tags.

Changes:

  • Add template-time fail checks that block apiServer.image.tag and frontend.image.tag when the tag appears to reference Dependency-Track v5 (excluding sha256 digests).
  • Refactor image tag handling to consistently default to .Chart.AppVersion via a local $tag variable.
  • Bump the chart version from 1.0.0 to 1.1.0.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
charts/dependency-track/templates/_helpers.tpl Adds v5 tag detection + template fail guards for api-server and frontend image tags.
charts/dependency-track/Chart.yaml Increments chart version to reflect the added fail-fast behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/dependency-track/templates/_helpers.tpl
Comment thread charts/dependency-track/templates/_helpers.tpl
Comment thread charts/dependency-track/Chart.yaml
@nscuro nscuro merged commit 0ff9f0d into main Jun 3, 2026
5 checks passed
@nscuro nscuro deleted the v5-fail-fast branch June 3, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants