Skip to content

Commit d9edccd

Browse files
committed
update taskfile
1 parent df771fe commit d9edccd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

applications/wg-easy/Taskfile.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,26 @@ tasks:
172172
deps:
173173
- cluster-create
174174

175+
helm-preflight-dryrun:
176+
desc: Verify the preflight specs that will be run
177+
silent: false
178+
cmds:
179+
- |
180+
TEMP_FILE=$(mktemp)
181+
182+
# Find all charts and append their templates to the temp file
183+
for chart_dir in $(find charts/ -maxdepth 1 -mindepth 1 -type d); do
184+
helm template "$chart_dir" >> "$TEMP_FILE"
185+
echo "---" >> "$TEMP_FILE" # Add separator between charts
186+
done
187+
188+
# Run preflight once on the combined templates
189+
echo "Running preflight checks on all templates"
190+
cat "$TEMP_FILE" | kubectl preflight - --dry-run
191+
192+
# Clean up
193+
rm "$TEMP_FILE"
194+
175195
helm-preflight:
176196
desc: Run preflight checks on Helm charts using preflight CLI
177197
silent: false
@@ -493,6 +513,7 @@ tasks:
493513
- task: setup-kubeconfig
494514
- task: cluster-ports-expose
495515
- task: dependencies-update
516+
- task: helm-preflight
496517
- task: helm-install
497518
- task: test
498519
- task: cluster-delete

0 commit comments

Comments
 (0)