Skip to content

chore: ignore Helm subcharts fetched by dependency update - #122

Merged
rrskris merged 1 commit into
mainfrom
chore/gitignore-helm-subcharts
Jul 26, 2026
Merged

rrskris merged 1 commit into
mainfrom
chore/gitignore-helm-subcharts

Conversation

@rrskris

@rrskris rrskris commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Small follow-up to #103.

The chart declares a postgresql subchart dependency, so running helm dependency update — which the Helm Lint job does, and which is required before helm lint succeeds — leaves an untracked deploy/helm/kaaval/charts/ containing the downloaded tarball. Nothing in .gitignore covered it, making an accidental vendored-binary commit easy. I hit it myself while verifying #103 and #107.

Scoped to deploy/helm/*/charts/ so any future chart is covered.

Not addressed here: Chart.lock

Committing Chart.lock is the usual practice for application charts — it pins the resolved dependency digest, and Chart.yaml currently specifies a 15.x.x range, so the exact postgresql version floats.

But it only helps alongside helm dependency build in CI. The current job runs helm dependency update, which re-resolves the range and rewrites the lock, so a committed lockfile would be silently overwritten and buy nothing.

That's a real decision (pin-and-build vs. float-and-update), not a cleanup, so I've left Chart.lock untracked and unignored rather than picking for the chart's owner. Noted on #97/#98 as part of finishing the chart.

The chart landed in #103 declares a postgresql subchart, so anyone running
helm dependency update (as the Helm Lint job does) ends up with an untracked
deploy/helm/kaaval/charts/ holding the downloaded tarball. Nothing ignored it,
which makes committing a vendored binary an easy accident.

Scoped to deploy/helm/*/charts/ so future charts are covered too.

Deliberately not addressing Chart.lock: committing it is the usual practice
for application charts, but only alongside `helm dependency build` in CI —
the current job runs `helm dependency update`, which re-resolves and rewrites
the lock, making a committed one meaningless. That pairing is a call for
whoever takes #97/#98.

Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
@github-actions

Copy link
Copy Markdown

Invigil — kaaval

Gate G5 · Grade A+ · 34/35 (97%)

All five doors open and documented

Gate Check Effort Why Fix
G4 OpenSSF Scorecard >= 7 hours score 6.7 < 7 triage the Scorecard findings (branch protection, token perms, pinned deps) to reach >=7

30 passing · 1 failing · 4 skipped · report-only

@rrskris
rrskris merged commit 32f16f4 into main Jul 26, 2026
7 checks passed
@rrskris
rrskris deleted the chore/gitignore-helm-subcharts branch July 26, 2026 14:57
@rrskris rrskris mentioned this pull request Jul 26, 2026
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.

1 participant