Skip to content

Commit

Permalink
Merge pull request #468 from RossyWhite/fix-dryrun-option
Browse files Browse the repository at this point in the history
Fix --dry-run option
  • Loading branch information
stefanprodan authored Nov 16, 2020
2 parents d84297a + 02bcb4f commit 51392cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flux/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 51392cd

Please sign in to comment.