mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
drop complete function from setImageTag subcommand
This commit is contained in:
@@ -58,10 +58,6 @@ and overwrite the previous newTag if the image name exists.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = o.Complete(cmd, args)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return o.RunSetImageTags(fsys)
|
return o.RunSetImageTags(fsys)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -84,11 +80,6 @@ func (o *setImageTagOptions) Validate(args []string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Complete completes setImageTag command.
|
|
||||||
func (o *setImageTagOptions) Complete(cmd *cobra.Command, args []string) error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RunSetImageTags runs setImageTags command (does real work).
|
// RunSetImageTags runs setImageTags command (does real work).
|
||||||
func (o *setImageTagOptions) RunSetImageTags(fsys fs.FileSystem) error {
|
func (o *setImageTagOptions) RunSetImageTags(fsys fs.FileSystem) error {
|
||||||
mf, err := newKustomizationFile(constants.KustomizationFileName, fsys)
|
mf, err := newKustomizationFile(constants.KustomizationFileName, fsys)
|
||||||
|
|||||||
Reference in New Issue
Block a user