Skip to content

refactor(helm): pass chart path to helm instead of cd-ing into it#105

Closed
rguichard wants to merge 1 commit into
feature/pla-1455-move-app-related-deployment-config-into-application-reposfrom
fix/validate-helm-avoid-cd
Closed

refactor(helm): pass chart path to helm instead of cd-ing into it#105
rguichard wants to merge 1 commit into
feature/pla-1455-move-app-related-deployment-config-into-application-reposfrom
fix/validate-helm-avoid-cd

Conversation

@rguichard

Copy link
Copy Markdown
Collaborator

Addresses an Aikido finding on PR #90 (validate-helm-charts.sh:110).

process_chart() changed directory into each chart to run helm dependency update / helm template . then cd-ed back. Pass the chart path directly (helm dependency update <path>, helm template <path>); temp output paths are absolute so output is unaffected. INITIAL_DIR is removed as it is no longer referenced. No behaviour change.

🤖 Generated with Claude Code

process_chart() changed directory into each chart to run
`helm dependency update` / `helm template .` and then cd-ed back.
Pass the chart path directly (`helm dependency update <path>`,
`helm template <path>`) so no working-directory juggling is needed.
The temp output paths are absolute (mktemp), so output is unaffected.
INITIAL_DIR is removed as it is no longer referenced.

No behaviour change. Addresses Aikido finding on validate-helm-charts.sh:110.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rguichard rguichard closed this Jun 25, 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