Skip to content

Commit

Permalink
smooth over
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Jan 19, 2024
1 parent 41561d5 commit 03703cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/krane/deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ def validate_resources(resources)
validate_globals(resources)
resources.select! { |r| r.selected?(@selector) } if @selector_as_filter
applyables, individuals = resources.partition { |r| r.deploy_method == :apply }
batch_dry_run_success = validate_dry_run(applyables)
begin
batch_dry_run_success = validate_dry_run(applyables)
rescue FatalDeploymentError => e
raise FatalDeploymentError, "Template validation failed"
end
Krane::Concurrency.split_across_threads(resources) do |r|
# No need to pass in kubectl (and do per-resource dry run apply) if batch dry run succeeded
r.validate_definition(kubectl: nil, selector: @selector, dry_run: false)
Expand Down

0 comments on commit 03703cc

Please sign in to comment.