|
|
|
@ -160,7 +160,12 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return outfmt.Write(out, &statusPrinter{rel, settings.Debug, false, false, false, instClient.HideNotes})
|
|
|
|
|
return outfmt.Write(out, &statusPrinter{
|
|
|
|
|
release: rel,
|
|
|
|
|
debug: settings.Debug,
|
|
|
|
|
showMetadata: false,
|
|
|
|
|
hideNotes: instClient.HideNotes,
|
|
|
|
|
})
|
|
|
|
|
} else if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
@ -238,7 +243,6 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
rel, err := client.RunWithContext(ctx, args[0], ch, vals)
|
|
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
return errors.Wrap(err, "UPGRADE FAILED")
|
|
|
|
|
}
|
|
|
|
@ -247,7 +251,12 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
|
fmt.Fprintf(out, "Release %q has been upgraded. Happy Helming!\n", args[0])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return outfmt.Write(out, &statusPrinter{rel, settings.Debug, false, false, false, client.HideNotes})
|
|
|
|
|
return outfmt.Write(out, &statusPrinter{
|
|
|
|
|
release: rel,
|
|
|
|
|
debug: settings.Debug,
|
|
|
|
|
showMetadata: false,
|
|
|
|
|
hideNotes: client.HideNotes,
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -291,7 +300,6 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
|
}
|
|
|
|
|
return compVersionFlag(args[1], toComplete)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|