mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
rename flag to --no-verify
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
type addResourceOptions struct {
|
||||
resourceFilePaths []string
|
||||
skipValidation bool
|
||||
noVerify bool
|
||||
}
|
||||
|
||||
// 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 {
|
||||
return o.RunAddResource(fSys)
|
||||
},
|
||||
}
|
||||
cmd.Flags().BoolVar(&o.skipValidation, "skip-validation", false,
|
||||
cmd.Flags().BoolVar(&o.noVerify, "no-verify", false,
|
||||
"skip validation for resources",
|
||||
)
|
||||
return cmd
|
||||
@@ -53,7 +53,7 @@ func (o *addResourceOptions) Validate(args []string) error {
|
||||
|
||||
// RunAddResource runs addResource command (do real work).
|
||||
func (o *addResourceOptions) RunAddResource(fSys filesys.FileSystem) error {
|
||||
resources, err := util.GlobPatternsWithLoader(fSys, ldrhelper.NewFileLoaderAtCwd(fSys), o.resourceFilePaths, o.skipValidation)
|
||||
resources, err := util.GlobPatternsWithLoader(fSys, ldrhelper.NewFileLoaderAtCwd(fSys), o.resourceFilePaths, o.noVerify)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user