mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
remove mapper dependency - PrintSuccess
This commit is contained in:
@@ -43,7 +43,7 @@ type UndoOptions struct {
|
||||
ToRevision int64
|
||||
DryRun bool
|
||||
|
||||
PrintSuccess func(mapper meta.RESTMapper, shortOutput bool, out io.Writer, resource, name string, dryRun bool, operation string)
|
||||
PrintSuccess func(shortOutput bool, out io.Writer, resource, name string, dryRun bool, operation string)
|
||||
Out io.Writer
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ func (o *UndoOptions) RunUndo() error {
|
||||
allErrs = append(allErrs, cmdutil.AddSourceToErr("undoing", info.Source, err))
|
||||
continue
|
||||
}
|
||||
o.PrintSuccess(o.Mapper, false, o.Out, info.Mapping.Resource, info.Name, false, result)
|
||||
o.PrintSuccess(false, o.Out, info.Mapping.Resource, info.Name, false, result)
|
||||
}
|
||||
return utilerrors.NewAggregate(allErrs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user