Repository navigation
Done
Labels
effort/mediumEffort Mediumpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Description
Problem
Since #7777 (release v0.258.5), devops k8s lint renders each Helm chart source of the Argo CD Applications. On the environment tree of dan-petty/homelab at 75586af9 it reports about 170 findings with devops-cli v0.259.0, so make k8s-apps and the CI check K8s of that repository fail.
Two causes show in the output:
- A rendered chart object with no namespace gets none. kube-linter then cannot match a pod to a NetworkPolicy or a ServiceAccount, so it reports
non-isolated-podandnon-existent-service-accountfor objects that exist, such as those ofmattermost-operator. - The exceptions of
.kube-linter-charts.yamlof the environment tree do not apply.
scripts/k8s-checks.py charts of dan-petty/homelab handles both: it sets the destination namespace and applies the exceptions.
Expected behavior
- A chart object with no namespace takes the destination namespace of its Application, as Argo CD applies it.
- A finding with a written exception of the environment tree does not fail the lint, or the lint renders no chart source that another check covers.
Reproduction
Run devops k8s lint --k8s-dir <homelab checkout>/k8s with v0.259.0.
Existing Tool Considered
kube-linter reads the namespace of each object and the ignore annotations. helm template --namespace does not write the namespace into objects whose template omits it. No tool is built here.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p0-criticalPriority P0: a release blocker or a critical defectscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 30, 2026
The body states that make k8s-apps and the CI check K8s of the homelab repository fail, which is a CI failure.Both concern linting Helm chart sources with kube-linter, but #6106 added the capability while the candidate fixes the namespace and exception handling in that rendering.dan-petty commentedon Nov 30, 2026
Evidence from a run on dan-petty/homelab
mainat77f122e, 2026-11-30:make k8s-appsexits 2 with 173 MEDIUM findings.devops k8s lintexits 1 on each finding.v0.251.0and later, not first inv0.258.5:git tag --contains d15c17969listsv0.251.0as the first tag.v0.258.4, which homelab pins, holds the change.service.reposgives the same 173 findings asmain. So this item blocks dan-petty/homelab#697.docs(spec): state the reference rule in the change of #7904
docs(spec): state the reference rule in the change of #7904
devops-cli-service commentedon Nov 30, 2026
Released in v0.263.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.263.1
devops-cli-service commentedon Nov 30, 2026
Live since 2026-11-30 20:54 UTC