Skip to content

Commit

Permalink
Remove analytics from hyperalert (#447)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Jun 4, 2019
1 parent 2169b19 commit 3c90dc7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugins/hyperalert/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package hyperalert

import (
"flag"
"os"
"strings"

v "github.com/appscode/go/version"
"github.com/appscode/searchlight/client/clientset/versioned/scheme"
Expand All @@ -26,16 +24,13 @@ import (
"github.com/spf13/cobra"
clientsetscheme "k8s.io/client-go/kubernetes/scheme"
"kmodules.xyz/client-go/logs"
"kmodules.xyz/client-go/tools/cli"
)

func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "hyperalert",
Short: "AppsCode Icinga2 plugin",
PersistentPreRun: func(c *cobra.Command, args []string) {
cli.EnableAnalytics = strings.EqualFold(os.Getenv("ENABLE_ANALYTICS"), "true")
cli.SendAnalytics(c, v.Version.Version)
scheme.AddToScheme(clientsetscheme.Scheme)
},
Run: func(c *cobra.Command, args []string) {
Expand Down

0 comments on commit 3c90dc7

Please sign in to comment.