From 2bf697d08e62894b9a928a280ab114890ab661d4 Mon Sep 17 00:00:00 2001 From: Timothy Smith Date: Mon, 29 Jan 2024 14:31:08 -0500 Subject: [PATCH] Try client-side apply --- lib/krane/resource_deployer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krane/resource_deployer.rb b/lib/krane/resource_deployer.rb index 96b2070de..01cc5d34d 100644 --- a/lib/krane/resource_deployer.rb +++ b/lib/krane/resource_deployer.rb @@ -162,7 +162,7 @@ def apply_all(resources, prune, dry_run: false) @prune_allowlist.each { |type| command.push("#{allow_list_flag}=#{type}") } end - command.push(kubectl.dry_run_flag) if dry_run + command.push("--dry-run=client") if dry_run 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,