Skip to content

Commit 2bf697d

Browse files
Try client-side apply
1 parent 7c30468 commit 2bf697d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/krane/resource_deployer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def apply_all(resources, prune, dry_run: false)
162162
@prune_allowlist.each { |type| command.push("#{allow_list_flag}=#{type}") }
163163
end
164164

165-
command.push(kubectl.dry_run_flag) if dry_run
165+
command.push("--dry-run=client") if dry_run
166166
output_is_sensitive = resources.any?(&:sensitive_template_content?)
167167
global_mode = resources.all?(&:global?)
168168
out, err, st = kubectl.run(*command, log_failure: false, output_is_sensitive: output_is_sensitive,

0 commit comments

Comments
 (0)