1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Fix --dry-run option

Signed-off-by: RossyWhite <daikishiroi@gmail.com>
This commit is contained in:
RossyWhite
2020-11-16 18:03:08 +09:00
parent d84297a5b5
commit 02bcb4ff3c

View File

@@ -152,7 +152,7 @@ func installCmdRun(cmd *cobra.Command, args []string) error {
kubectlArgs := []string{"apply", "-f", filepath.Join(tmpDir, manifest.Path)}
if installDryRun {
args = append(args, "--dry-run=client")
kubectlArgs = append(kubectlArgs, "--dry-run=client")
applyOutput = utils.ModeOS
}
if _, err := utils.ExecKubectlCommand(ctx, applyOutput, kubectlArgs...); err != nil {