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 {