Skip to content

fix(k8s): accept a chart default image with no digest in image-pins #7963

Done

Description

@dan-petty

Problem

devops k8s image-pins requires a sha256 digest on each image of each chart render (#6067, #7775). That includes the images that a chart chooses itself. To pass, the values of an environment must set the tag and digest of each chart default. The chart version then no longer moves the image: a chart upgrade keeps the old image until a second change moves it.

In dan-petty/homelab at commit 5ccbd2e, the check refuses 51 images. For most of them, no values file names the tag.

Proposed change

An image of a chart source needs a digest only when a value of that source names its tag: a value file holds the tag, a start of the tag before -, or the image with the tag. Else the chart version fixes the image. Each image of a path source still needs a digest. The refusal of latest and of an image with no tag stays for each source.

The command says how many chart images it accepted by the chart version.

Owner decision (2026-11-30): pin only the images that the environment names itself.

Acceptance criteria

  • A chart image whose tag no value of its source names passes with no digest.
  • A chart image whose tag a value names, with no digest, is refused.
  • An image of a path source with no digest is refused, also when a chart source has the same image.
  • An image with the tag latest, or with no tag, is refused in each source.

Existing tool considered

helm template and the existing check. Renovate pins the digests that the values name. No new dependency.

Related

#6067, dan-petty/homelab#307.

Source

Source: https://github.com/dan-petty/homelab/issues/307

Activity

  1. added
    type/bug
    scope/k8s
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 30, 2026
  2. removed
    status/in-review
    owner/agent
    on Nov 30, 2026
  3. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Live since 2026-12-01 02:48 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions