Skip to content

[prometheus-node-exporter] support digest and full image refs in image.tag - #7187

Open
maichouni-mitek wants to merge 3 commits into
prometheus-community:mainfrom
maichouni-mitek:prometheus-node-exporter-support-tag-digest
Open

[prometheus-node-exporter] support digest and full image refs in image.tag#7187
maichouni-mitek wants to merge 3 commits into
prometheus-community:mainfrom
maichouni-mitek:prometheus-node-exporter-support-tag-digest

Conversation

@maichouni-mitek

@maichouni-mitek maichouni-mitek commented Aug 13, 2026

Copy link
Copy Markdown

What this PR does / why we need it

semverCompare was applied to image.tag as-is. Valid OCI forms such as tag@sha256:… and full refs like registry/repository:tag@sha256:… are not plain semver, so templating fails with invalid semantic version.

This PR:

  • Adds prometheus-node-exporter.appSemver to normalize those forms (and prefer Values.version) before the >=1.4.0 udev feature gate
  • Treats image.tag values containing / as a full image reference so installs do not double-prefix registry/repository
  • Adds helm-unittest coverage for default, digest-pinned tag, full-ref tag ([prometheus-node-exporter] Invalid Semantic Version for image digests #3589 repro), pre-1.4 omission, and version: override
  • Bumps chart version 4.56.14.56.2

Which issue this PR fixes

Special notes for your reviewer

Preferred pinning remains image.registry / image.repository / image.tag plus image.digest. Full refs in image.tag are supported for compatibility with the #3589 reproduction and similar tooling.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])
  • Add an helm unittest test case to cover this change.

Strip digest suffixes from image.tag before feature-gating with
semverCompare so standard OCI references (tag@sha256:...) work.
Values.version and Chart.AppVersion behavior are unchanged.

Fixes prometheus-community#3589

Signed-off-by: MEHDI AICHOUNI <maichouni@miteksystems.com>
Handle registry/repository:tag[@digest] in image.tag for feature gates and
image rendering so install with a full pinned ref succeeds.

Signed-off-by: MEHDI AICHOUNI <maichouni@miteksystems.com>
@maichouni-mitek maichouni-mitek changed the title [prometheus-node-exporter] support OCI tag@digest in semverCompare [prometheus-node-exporter] support digest and full image refs in image.tag Aug 13, 2026
@maichouni-mitek
maichouni-mitek marked this pull request as ready for review August 13, 2026 11:37
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.

[prometheus-node-exporter] Invalid Semantic Version for image digests

1 participant