mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Remove Complete function and references
This commit is contained in:
@@ -63,10 +63,6 @@ func newCmdAddAnnotation(fsys fs.FileSystem) *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = o.Complete(cmd, args)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return o.RunAddMetadata(fsys, annotation)
|
||||
},
|
||||
}
|
||||
@@ -87,10 +83,6 @@ func newCmdAddLabel(fsys fs.FileSystem) *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = o.Complete(cmd, args)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return o.RunAddMetadata(fsys, label)
|
||||
},
|
||||
}
|
||||
@@ -121,11 +113,6 @@ func (o *addMetadataOptions) Validate(args []string, k KindOfAdd) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Complete completes addMetadata command.
|
||||
func (o *addMetadataOptions) Complete(cmd *cobra.Command, args []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// RunAddMetadata runs addLabel and addAnnotation commands (do real work).
|
||||
func (o *addMetadataOptions) RunAddMetadata(fsys fs.FileSystem, k KindOfAdd) error {
|
||||
mf, err := newKustomizationFile(constants.KustomizationFileName, fsys)
|
||||
|
||||
Reference in New Issue
Block a user