DependencyTrack / helm-charts

Helm Charts for Dependency-Track
https://dependencytrack.org
Apache License 2.0
18 stars 17 forks source link

Deployment failing with digest in image tag #111

Closed davidr-bgp closed 2 weeks ago

davidr-bgp commented 1 month ago

The image tag of apiServer and frontend is used as direct input their respective label app.kubernetes.io/version.

When pinning the image tag to a specific sha256 digest, the maximum length of the label is exceeded and deployment fails.

Relevant lines: _helpers.tpl L56, _helpers.tpl L96.

As a quick workaround I use .Chart.AppVersion, not .image.tag. I’m not sure what a better solution would be.

nscuro commented 1 month ago

Truncation is the only way forward here. So we need to do something similar to what we do for name and fullname:

https://github.com/DependencyTrack/helm-charts/blob/79745463f35286a2634a17155d6e808eaa6e448f/charts/dependency-track/templates/_helpers.tpl#L1-L24