Skip to content

fix(helm): return instead of exit in process_chart#102

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

fix(helm): return instead of exit in process_chart#102
rguichard wants to merge 1 commit into
feature/pla-1455-move-app-related-deployment-config-into-application-reposfrom
fix/validate-helm-process-chart-return

Conversation

@rguichard

Copy link
Copy Markdown
Collaborator

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

process_chart() is invoked directly in the sequential loop (if ! process_chart "$chart"), so the trailing exit terminated the entire script after the first chart — remaining charts were never validated and the summary was never printed. The three exit statements are changed to return so the caller aggregates failures and reaches the summary. The parallel path (function runs in a parallel-spawned subshell) is unaffected.

🤖 Generated with Claude Code

process_chart() is invoked directly in the sequential loop
(`if ! process_chart "$chart"`), so `exit` terminated the entire
script after the first chart — remaining charts were never validated
and the summary was never printed. Use `return` so the caller can
aggregate failures and reach the summary. Behaviour in the parallel
path (where the function runs in a `parallel`-spawned subshell) is
unchanged.

Addresses Aikido finding on validate-helm-charts.sh.

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