Skip to content

feat(k8s): render an OCI chart in image-pins #7368

Done

Description

@dan-petty

Problem

devops k8s image-pins stops when an Argo CD Application names a chart in an OCI registry, which Argo CD writes as a repoURL with no scheme. _chart_command in src/devops_cli/k8s/image_pins.py raises ImagePinError: "Application names an OCI chart repository, which the check does not render". The check was written when no Application used such a repository.

Some projects publish their charts only in an OCI registry. Actions Runner Controller of GitHub is one: its charts gha-runner-scale-set-controller and gha-runner-scale-set are only at ghcr.io/actions/actions-runner-controller-charts. An environment repository that installs such a chart cannot pass make k8s-pins, which its CI runs. dan-petty/homelab#420 (self-hosted runners for the private repositories) waits for this change.

Evidence

  • In a worktree of dan-petty/homelab at 0e79f0d, make -s k8s-pins exits 0 (52 images). With one more Application (repoURL: ghcr.io/actions/actions-runner-controller-charts, chart: gha-runner-scale-set-controller, targetRevision: 0.15.1), it exits 2 with the message above. devops-cli v0.221.15 and main at 3e1bf8540 have the same code.
  • helm template <release> oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller --version 0.15.1 --namespace <namespace> --skip-tests --values <file> renders the chart (Helm 4.3.2, exit 0).
  • helm template <release> <chart> --repo oci://ghcr.io/actions/actions-runner-controller-charts --version 0.15.1 fails: "is not a valid chart repository or cannot be reached". So an OCI chart needs the chart reference oci://<repoURL>/<chart> and no --repo.
  • tests/k8s/test_image_pins.py::test_an_oci_chart_repository_stops_the_check asserts the refusal.
  • The https repository https://actions-runner-controller.github.io/actions-runner-controller holds only the old chart actions-runner-controller (0.23.7, 2023).

Acceptance criteria

  • For a chart source whose repoURL has no scheme, image-pins renders oci://<repoURL>/<chart> at targetRevision, with the release name, the namespace, --skip-tests and the value files of an https chart source, and it resolves each image of the render.
  • A render that fails names the Helm error, as for an https repository.
  • A dry run makes no request for an OCI chart and prints the command.
  • The test of the refusal becomes a test of the render command of an OCI chart.
  • The text that describes the check names the two repository forms.
  • Each other command that reads the chart sources of the Applications (chart_sources in src/devops_cli/k8s/app_sources.py and its callers) is checked for the same limit.

Source

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

Activity

  1. added
    type/feature
    scope/k8s
    source/agent
    on Nov 27, 2026
  2. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor
    • Priority: It blocks dan-petty/homelab#420 and causes CI failure for any environment that installs an OCI chart.
    • Related: build(k8s): Pin the third-party images of k8s by digest #6067, which asks for a different change. Both work on devops k8s image-pins and its OCI refusal, but #6067 pins digests and keeps the refusal while the candidate removes it.
  3. added
    status/new
    effort/medium
    value/high
    priority/p1-high
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 27, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 27, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 27, 2026
  6. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-27 03:24 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/p1-highscope/k8ssource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions