Skip to content

Commit d2a334e

Browse files
Fixed sync set strategy bug
1 parent 17cfcb8 commit d2a334e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/cmdsync/cmdsyncset.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func NewSetRunner(parent string) *SetRunner {
3737
PreRunE: r.preRunE,
3838
}
3939

40-
c.Flags().StringVar(&r.Strategy, "strategy", "", "update strategy to use.")
40+
c.Flags().StringVar(&r.Dependency.Strategy, "strategy", "", "update strategy to use.")
4141
c.Flags().BoolVar(&r.Dependency.EnsureNotExists, "prune", false,
4242
"prune the dependency when it is synced.")
4343
cmdutil.FixDocs("kpt", parent, c)
@@ -52,7 +52,6 @@ func NewSetCommand(parent string) *cobra.Command {
5252
type SetRunner struct {
5353
Dependency kptfile.Dependency
5454
Command *cobra.Command
55-
Strategy string
5655
}
5756

5857
func (r *SetRunner) preRunE(_ *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)