Renamed flag from show-rollback to show-rollback-revision

Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com>
pull/31859/head
MrJack 2 months ago
parent 291a1a3b26
commit d097d882d4

@ -50,9 +50,9 @@ The historical release set is printed as a formatted table, e.g:
3 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Rolled back to 2
4 Mon Oct 3 10:15:13 2016 deployed alpine-0.1.0 1.0 Upgraded successfully
Use '--show-rollback' to include a column showing the revision that was rolled back to:
Use '--show-rollback-revision' to include a column showing the revision that was rolled back to:
$ helm history angry-bird --show-rollback
$ helm history angry-bird --show-rollback-revision
REVISION UPDATED STATUS CHART APP VERSION ROLLBACK DESCRIPTION
1 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Initial install
2 Mon Oct 3 10:15:13 2016 superseded alpine-0.1.0 1.0 Upgraded successfully
@ -92,7 +92,7 @@ func newHistoryCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
f := cmd.Flags()
f.IntVar(&client.Max, "max", 256, "maximum number of revision to include in history")
f.BoolVar(&showRollback, "show-rollback", false, "show the rollback revision column in table output")
f.BoolVar(&showRollback, "show-rollback-revision", false, "show the rollback revision column in table output")
bindOutputFlag(cmd, &outfmt)
return cmd

@ -130,8 +130,8 @@ func TestHistoryWithRollback(t *testing.T) {
rels: rels,
golden: "output/history-with-rollback-no-flag.txt",
}, {
name: "history with rollback revision and --show-rollback flag",
cmd: "history angry-bird --show-rollback",
name: "history with rollback revision and --show-rollback-revision flag",
cmd: "history angry-bird --show-rollback-revision",
rels: rels,
golden: "output/history-with-rollback.txt",
}, {

Loading…
Cancel
Save