mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 00:59:31 +08:00
K8s: Move standalone apiserver CLI to enterprise (#93799)
This commit is contained in:
@ -5,10 +5,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/extensions"
|
||||
"github.com/grafana/grafana/pkg/services/apiserver/standalone"
|
||||
"github.com/grafana/grafana/pkg/setting"
|
||||
)
|
||||
|
||||
func getBuildstamp(opts ServerOptions) int64 {
|
||||
func getBuildstamp(opts standalone.BuildInfo) int64 {
|
||||
buildstampInt64, err := strconv.ParseInt(opts.BuildStamp, 10, 64)
|
||||
if err != nil || buildstampInt64 == 0 {
|
||||
buildstampInt64 = time.Now().Unix()
|
||||
@ -16,7 +17,7 @@ func getBuildstamp(opts ServerOptions) int64 {
|
||||
return buildstampInt64
|
||||
}
|
||||
|
||||
func SetBuildInfo(opts ServerOptions) {
|
||||
func SetBuildInfo(opts standalone.BuildInfo) {
|
||||
setting.BuildVersion = opts.Version
|
||||
setting.BuildCommit = opts.Commit
|
||||
setting.EnterpriseBuildCommit = opts.EnterpriseCommit
|
||||
|
Reference in New Issue
Block a user