Grafana App Platform: provide an example-apiserver to easily deploy aggregated APIservers (#77826)

This commit is contained in:
Charandas
2023-11-07 22:35:15 -08:00
committed by GitHub
parent 9e346616d0
commit 8a46dc39d0
16 changed files with 347 additions and 6 deletions

View File

@@ -17,12 +17,13 @@ const (
GoOSWindows = "windows"
GoOSLinux = "linux"
BackendBinary = "grafana"
ServerBinary = "grafana-server"
CLIBinary = "grafana-cli"
BackendBinary = "grafana"
ExampleAPIServerBinary = "grafana-example-apiserver"
ServerBinary = "grafana-server"
CLIBinary = "grafana-cli"
)
var binaries = []string{BackendBinary, ServerBinary, CLIBinary}
var binaries = []string{BackendBinary, ExampleAPIServerBinary, ServerBinary, CLIBinary}
func logError(message string, err error) int {
log.Println(message, err)
@@ -85,6 +86,13 @@ func RunCmd() int {
return 1
}
case "build-example-apiserver":
clean(opts)
if err := doBuild("grafana-example-apiserver", "./pkg/cmd/grafana-example-apiserver", opts); err != nil {
log.Println(err)
return 1
}
case "build-cli":
clean(opts)
if err := doBuild("grafana-cli", "./pkg/cmd/grafana-cli", opts); err != nil {

View File

@@ -12,7 +12,7 @@ import (
"github.com/grafana/grafana/pkg/build/golangutils"
)
var binaries = []string{"grafana", "grafana-server", "grafana-cli"}
var binaries = []string{"grafana", "grafana-example-apiserver", "grafana-server", "grafana-cli"}
const (
SuffixEnterprise2 = "-enterprise2"