mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
Fix --dry-run option
Signed-off-by: RossyWhite <daikishiroi@gmail.com>
This commit is contained in:
parent
d84297a5b5
commit
02bcb4ff3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue