Skip to content

Commit

Permalink
Merge pull request #751 from Shopify/refactor/update-attempts-kubectl…
Browse files Browse the repository at this point in the history
…-apply

Refactor/update attempts kubectl apply
  • Loading branch information
ruionweb authored Oct 5, 2020
2 parents fc30f27 + f2bbc88 commit 4e47cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/krane/resource_deployer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def apply_all(resources, prune)
output_is_sensitive = resources.any?(&:sensitive_template_content?)
global_mode = resources.all?(&:global?)
out, err, st = kubectl.run(*command, log_failure: false, output_is_sensitive: output_is_sensitive,
use_namespace: !global_mode)
attempts: 2, use_namespace: !global_mode)

if st.success?
log_pruning(out) if prune
Expand Down

0 comments on commit 4e47cce

Please sign in to comment.