mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #23279 from kargakis/export-volume-describer
Automatic merge from submit-queue kubectl: enhance podtemplate describer @kubernetes/kubectl @smarterclayton for the dc decsriber
This commit is contained in:
@@ -103,7 +103,6 @@ func RunHistory(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []st
|
||||
continue
|
||||
}
|
||||
|
||||
formattedOutput := ""
|
||||
if revisionDetail > 0 {
|
||||
// Print details of a specific revision
|
||||
template, ok := historyInfo.RevisionToTemplate[revisionDetail]
|
||||
@@ -111,16 +110,16 @@ func RunHistory(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []st
|
||||
return fmt.Errorf("unable to find revision %d of %s %q", revisionDetail, mapping.Resource, info.Name)
|
||||
}
|
||||
fmt.Fprintf(out, "%s %q revision %d\n", mapping.Resource, info.Name, revisionDetail)
|
||||
formattedOutput, err = kubectl.DescribePodTemplate(template)
|
||||
kubectl.DescribePodTemplate(template, out)
|
||||
} else {
|
||||
// Print all revisions
|
||||
formattedOutput, err = kubectl.PrintRolloutHistory(historyInfo, mapping.Resource, info.Name)
|
||||
formattedOutput, printErr := kubectl.PrintRolloutHistory(historyInfo, mapping.Resource, info.Name)
|
||||
if printErr != nil {
|
||||
errs = append(errs, printErr)
|
||||
continue
|
||||
}
|
||||
fmt.Fprintf(out, "%s\n", formattedOutput)
|
||||
}
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
continue
|
||||
}
|
||||
fmt.Fprintf(out, "%s\n", formattedOutput)
|
||||
}
|
||||
|
||||
return errors.NewAggregate(errs)
|
||||
|
||||
Reference in New Issue
Block a user