A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/helm/chart-testing/commit/4960e30445ead42157850a75245a6c543460ddee below:

Return correct exit code when using values files (#32) · helm/chart-testing@4960e30 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+14

-6

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+14

-6

lines changed Original file line number Diff line number Diff line change

@@ -380,15 +380,20 @@ chartlib::get_pods_for_deployment() {

380 380

# $1 The chart directory

381 381

chartlib::lint_chart_with_all_configs() {

382 382

local chart_dir="${1?Chart directory is required}"

383 +

local error=

383 384 384 385

local has_test_values=

385 386

for values_file in "$chart_dir"/ci/*-values.yaml; do

386 387

has_test_values=true

387 -

chartlib::lint_chart_with_single_config "$chart_dir" "$values_file"

388 +

chartlib::lint_chart_with_single_config "$chart_dir" "$values_file" || error=true

388 389

done

389 390 390 391

if [[ -z "$has_test_values" ]]; then

391 -

chartlib::lint_chart_with_single_config "$chart_dir"

392 +

chartlib::lint_chart_with_single_config "$chart_dir" || error=true

393 +

fi

394 + 395 +

if [[ -n "$error" ]]; then

396 +

return 1

392 397

fi

393 398

}

394 399

@@ -402,6 +407,7 @@ chartlib::lint_chart_with_all_configs() {

402 407

# $1 The chart directory

403 408

chartlib::install_chart_with_all_configs() {

404 409

local chart_dir="${1?Chart directory is required}"

410 +

local error=

405 411

local index=0

406 412 407 413

# Generate suffix 10 long and cut release name to 16 long, as in case of long release name

@@ -419,14 +425,16 @@ chartlib::install_chart_with_all_configs() {

419 425

local has_test_values=

420 426

for values_file in "$chart_dir"/ci/*-values.yaml; do

421 427

has_test_values=true

422 -

if ! chartlib::install_chart_with_single_config "$chart_dir" "$release-$index" "$namespace-$index" "$values_file"; then

423 -

return 1

424 -

fi

428 +

chartlib::install_chart_with_single_config "$chart_dir" "$release-$index" "$namespace-$index" "$values_file" || error=true

425 429

((index += 1))

426 430

done

427 431 428 432

if [[ -z "$has_test_values" ]]; then

429 -

chartlib::install_chart_with_single_config "$chart_dir" "$release" "$namespace"

433 +

chartlib::install_chart_with_single_config "$chart_dir" "$release" "$namespace" || error=true

434 +

fi

435 + 436 +

if [[ -n "$error" ]]; then

437 +

return 1

430 438

fi

431 439

}

432 440

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4