Skip to content

Commit

Permalink
print upgrade control-plane message
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Seigner <[email protected]>
  • Loading branch information
siggy committed Apr 25, 2019
1 parent a4a0b00 commit 7602ab8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cli/cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ import (
)

const (
okMessage = "You're on your way to upgrading Linkerd!\nVisit this URL for further instructions: https://linkerd.io/upgrade/#nextsteps\n"
failMessage = "For troubleshooting help, visit: https://linkerd.io/upgrade/#troubleshooting\n"
okMessage = "You're on your way to upgrading Linkerd!"
controlPlaneMessage = "Don't forget to run `linkerd upgrade control-plane`!"
visitMessage = "Visit this URL for further instructions: https://linkerd.io/upgrade/#nextsteps"
failMessage = "For troubleshooting help, visit: https://linkerd.io/upgrade/#troubleshooting\n"
)

type upgradeOptions struct {
Expand Down Expand Up @@ -117,6 +119,10 @@ install command.`,
buf.WriteTo(os.Stdout)

fmt.Fprintf(os.Stderr, "\n%s %s\n", okStatus, okMessage)
if stage == configStage {
fmt.Fprintf(os.Stderr, "%s\n", controlPlaneMessage)
}
fmt.Fprintf(os.Stderr, "%s\n\n", visitMessage)

return nil
},
Expand Down

0 comments on commit 7602ab8

Please sign in to comment.