Skip to content

ci(k8s): Lint the Helm chart sources with kube-linter #6106

Open

Description

@dan-petty

Update 2026-11-26 (infra move): The chart sources are in dan-petty/homelab now.

The kube-linter row here lints only k8s/devops. This item keeps the product part: devops k8s lint also renders the chart sources of an environment tree. The findings, the exceptions and the CI job are the homelab follow-up. The count of 113 is from the old tree.

Follow-up: dan-petty/homelab#309.


Problem

The kube-linter row of devops ci (#6068) lints only the path sources of the Argo CD Applications. It does not lint the 19 Helm chart sources. With the checks of .kube-linter.yaml, the chart renders give 113 findings on 2026-11-17, linted in one run with the builds of the path sources (helm template with the value files of the repository, as devops k8s image-pins renders them):

  • no-rolling-update-strategy: 24
  • unset-memory-requirements: 18
  • no-readiness-probe: 15
  • no-liveness-probe: 15
  • unset-cpu-requirements: 14
  • no-read-only-root-fs: 6
  • run-as-non-root: 3, non-isolated-pod: 3, sensitive-host-mounts: 3
  • 12 more, one or two for each of 9 checks

kube-linter takes an exception for one object only from the annotation ignore-check.kube-linter.io/<check> on that object. Its config has only checks.include and checks.exclude, which apply to all objects. The values of the charts argocd-image-updater, cloudnative-pg, dcgm-exporter, mattermost-operator and open-webui have no key that annotates their workloads. So a finding in those charts cannot get a narrow exception.

Expected behavior

  • For each finding of a chart, fix the values when the chart allows it, or record the exception with its reason.
  • Choose how a chart object gets a narrow exception, for example a lint-only Kustomize patch that adds the annotation, or a tool with exceptions in its config.
  • devops k8s lint also renders the chart sources, as devops k8s image-pins does, and a CI job with network access runs it. A new finding fails that job.

Related

Alternatives check of 2026-11-18: not-applicable.
Class: ci, no search.
Tool: none found.

Activity

  1. added
    type/infra
    scope/k8s
    source/agent
    status/new
    value/medium
    effort/medium
    on Nov 17, 2026
  2. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 17, 2026
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/agentstatus/newtype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions