Skip to content

Commit

Permalink
sc/rd 71 add plg link (#896)
Browse files Browse the repository at this point in the history
* Add persistentpostrun to root cmd and postrun to version cmd

* Change PLG link

* Add PLG link to dashboard

* <strong> the link

Co-authored-by: Andrew Suderman <[email protected]>
  • Loading branch information
transient1 and sudermanjr authored Jan 5, 2023
1 parent 71b0e00 commit 2d28ea5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/polaris/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ var rootCmd = &cobra.Command{
}
os.Exit(1)
},
PersistentPostRun: func(cmd *cobra.Command, args []string) {
os.Stderr.WriteString("\n\nWant more? Automate Polaris for free with Fairwinds Insights!\n🚀 https://fairwinds.com/insights-signup/polaris 🚀 \n")
},
}

// Execute the stuff
Expand Down
3 changes: 3 additions & 0 deletions cmd/polaris/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ var versionCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Polaris version:" + version)
},
PersistentPostRunE: func(cmd *cobra.Command, args []string) error {
return nil
},
}
1 change: 1 addition & 0 deletions pkg/dashboard/templates/navbar.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<a href="https://www.fairwinds.com/polaris-user-insights-demo?utm_source=polaris&utm_medium=polaris&utm_campaign=polaris" target="_blank">
<img class="fw-logo" src="static/images/white_logo_fairwinds.svg" alt="Fairwinds" />
</a>
<div style="color: white;"> Want more? Automate Polaris with <a href="https://www.fairwinds.com/insights-signup/polaris"><strong>Fairwinds Insights</strong></a></div>
<div class="right-section p-0 d-flex justify-content-between">
<a href="https://github.com/FairwindsOps" target="_blank">
<img class="gh-logo" src="static/images/white_icon_github.svg" alt="Github" />
Expand Down

0 comments on commit 2d28ea5

Please sign in to comment.