Skip to content

Commit 7138423

Browse files
committed
rename flag to --no-verify
1 parent 5936a89 commit 7138423

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kustomize/commands/edit/add/addresource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
type addResourceOptions struct {
1818
resourceFilePaths []string
19-
skipValidation bool
19+
noVerify bool
2020
}
2121

2222
// newCmdAddResource adds the name of a file containing a resource to the kustomization file.
@@ -36,7 +36,7 @@ func newCmdAddResource(fSys filesys.FileSystem) *cobra.Command {
3636
return o.RunAddResource(fSys)
3737
},
3838
}
39-
cmd.Flags().BoolVar(&o.skipValidation, "skip-validation", false,
39+
cmd.Flags().BoolVar(&o.noVerify, "no-verify", false,
4040
"skip validation for resources",
4141
)
4242
return cmd
@@ -53,7 +53,7 @@ func (o *addResourceOptions) Validate(args []string) error {
5353

5454
// RunAddResource runs addResource command (do real work).
5555
func (o *addResourceOptions) RunAddResource(fSys filesys.FileSystem) error {
56-
resources, err := util.GlobPatternsWithLoader(fSys, ldrhelper.NewFileLoaderAtCwd(fSys), o.resourceFilePaths, o.skipValidation)
56+
resources, err := util.GlobPatternsWithLoader(fSys, ldrhelper.NewFileLoaderAtCwd(fSys), o.resourceFilePaths, o.noVerify)
5757
if err != nil {
5858
return err
5959
}

0 commit comments

Comments
 (0)