From 713842330e6c0fb26a63f30241d0f7cc4b7f9f2c Mon Sep 17 00:00:00 2001 From: Yigit Demirbas Date: Tue, 3 Oct 2023 09:02:34 +0200 Subject: [PATCH] rename flag to --no-verify --- kustomize/commands/edit/add/addresource.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kustomize/commands/edit/add/addresource.go b/kustomize/commands/edit/add/addresource.go index c8354a4fc..529f2b119 100644 --- a/kustomize/commands/edit/add/addresource.go +++ b/kustomize/commands/edit/add/addresource.go @@ -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 }