HealthCheck: show enterprise commit (#75242)

This commit is contained in:
Ezequiel Victorero
2023-09-22 08:17:10 -03:00
committed by GitHub
parent 3529b7413d
commit 4cfc834c08
10 changed files with 102 additions and 30 deletions
+13 -11
View File
@@ -23,25 +23,27 @@ import (
)
type ServerOptions struct {
Version string
Commit string
BuildBranch string
BuildStamp string
Context *cli.Context
Version string
Commit string
EnterpriseCommit string
BuildBranch string
BuildStamp string
Context *cli.Context
}
func ServerCommand(version, commit, buildBranch, buildstamp string) *cli.Command {
func ServerCommand(version, commit, enterpriseCommit, buildBranch, buildstamp string) *cli.Command {
return &cli.Command{
Name: "server",
Usage: "run the grafana server",
Flags: commonFlags,
Action: func(context *cli.Context) error {
return RunServer(ServerOptions{
Version: version,
Commit: commit,
BuildBranch: buildBranch,
BuildStamp: buildstamp,
Context: context,
Version: version,
Commit: commit,
EnterpriseCommit: enterpriseCommit,
BuildBranch: buildBranch,
BuildStamp: buildstamp,
Context: context,
})
},
Subcommands: []*cli.Command{TargetCommand(version, commit, buildBranch, buildstamp)},