1
0
mirror of synced 2026-02-08 19:35:56 +00:00

Merge pull request #468 from RossyWhite/fix-dryrun-option

Fix --dry-run option
This commit is contained in:
Stefan Prodan
2020-11-16 17:31:42 +02:00
committed by GitHub

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 {