Skip to content

Commit

Permalink
Merge branch 'remove-slo' into 'develop'
Browse files Browse the repository at this point in the history
Remove slo

See merge request music-cloud-native/horizon/horizon!624
  • Loading branch information
music-code-review-robot committed Dec 1, 2022
2 parents 81f4915 + a8a9bbb commit 4fd3c8e
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 186 deletions.
4 changes: 0 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ tektonMapper:
disableSSL: false
skipVerify: true
s3ForcePathStyle: true
grafanaSLO:
overviewDashboard: "http://grafana.yf-dev2.netease.com/d/Wz3GSBank/slo-gai-lan?orgId=1&kiosk&theme=light&var-env=%s"
apiDashboard: "http://grafana.yf-dev2.netease.com/d/tKjaD1-nk/horizon-api-slo?orgId=1&kiosk&theme=light"
pipelineDashboard: "http://grafana.yf-dev2.netease.com/d/g40XAtbnk/horizon-pipeline-slo?orgId=1&kiosk&theme=light&var-env=%s"
grafanaConfig:
host: http://localhost:3000
namespace: horizon
Expand Down
7 changes: 1 addition & 6 deletions core/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
registryctl "g.hz.netease.com/horizon/core/controller/registry"
roltctl "g.hz.netease.com/horizon/core/controller/role"
scopectl "g.hz.netease.com/horizon/core/controller/scope"
sloctl "g.hz.netease.com/horizon/core/controller/slo"
tagctl "g.hz.netease.com/horizon/core/controller/tag"
templatectl "g.hz.netease.com/horizon/core/controller/template"
templateschematagctl "g.hz.netease.com/horizon/core/controller/templateschematag"
Expand All @@ -59,8 +58,7 @@ import (
"g.hz.netease.com/horizon/core/http/api/v1/region"
"g.hz.netease.com/horizon/core/http/api/v1/registry"
roleapi "g.hz.netease.com/horizon/core/http/api/v1/role"
scope "g.hz.netease.com/horizon/core/http/api/v1/scope"
sloapi "g.hz.netease.com/horizon/core/http/api/v1/slo"
"g.hz.netease.com/horizon/core/http/api/v1/scope"
"g.hz.netease.com/horizon/core/http/api/v1/tag"
"g.hz.netease.com/horizon/core/http/api/v1/template"
templatev2 "g.hz.netease.com/horizon/core/http/api/v2/template"
Expand Down Expand Up @@ -447,7 +445,6 @@ func Run(flags *Flags) {
templateCtl = templatectl.NewController(parameter, gitlabTemplate, templateRepo)
roleCtl = roltctl.NewController(parameter)
terminalCtl = terminalctl.NewController(parameter)
sloCtl = sloctl.NewController(coreConfig.GrafanaSLO)
codeGitCtl = codectl.NewController(gitGetter)
tagCtl = tagctl.NewController(parameter)
templateSchemaTagCtl = templateschematagctl.NewController(parameter)
Expand Down Expand Up @@ -485,7 +482,6 @@ func Run(flags *Flags) {
registryAPI = registry.NewAPI(registryCtl)
roleAPI = roleapi.NewAPI(roleCtl)
terminalAPI = terminalapi.NewAPI(terminalCtl)
sloAPI = sloapi.NewAPI(sloCtl)
codeGitAPI = codeapi.NewAPI(codeGitCtl)
tagAPI = tag.NewAPI(tagCtl)
templateSchemaTagAPI = templateschematagapi.NewAPI(templateSchemaTagCtl)
Expand Down Expand Up @@ -553,7 +549,6 @@ func Run(flags *Flags) {
member.RegisterRoutes(r, memberAPI)
roleapi.RegisterRoutes(r, roleAPI)
terminalapi.RegisterRoutes(r, terminalAPI)
sloapi.RegisterRoutes(r, sloAPI)
codeapi.RegisterRoutes(r, codeGitAPI)
tag.RegisterRoutes(r, tagAPI)
templateschematagapi.RegisterRoutes(r, templateSchemaTagAPI)
Expand Down
1 change: 0 additions & 1 deletion core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type Config struct {
AccessSecretKeys authenticate.KeysConfig `yaml:"accessSecretKeys"`
CmdbConfig cmdb.Config `yaml:"cmdbConfig"`
GrafanaConfig grafana.Config `yaml:"grafanaConfig"`
GrafanaSLO grafana.SLO `yaml:"grafanaSLO"`
Oauth oauth.Server `yaml:"oauth"`
AutoFreeConfig autofree.Config `yaml:"autoFree"`
KubeConfig string `yaml:"kubeconfig"`
Expand Down
27 changes: 0 additions & 27 deletions core/controller/slo/controller.go

This file was deleted.

55 changes: 0 additions & 55 deletions core/controller/slo/controller_test.go

This file was deleted.

6 changes: 0 additions & 6 deletions core/controller/slo/models.go

This file was deleted.

25 changes: 0 additions & 25 deletions core/http/api/v1/slo/apis.go

This file was deleted.

23 changes: 0 additions & 23 deletions core/http/api/v1/slo/routers.go

This file was deleted.

34 changes: 0 additions & 34 deletions openapi/front/slo.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions pkg/config/grafana/grafana.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ package grafana

import "time"

type SLO struct {
OverviewDashboard string `yaml:"overviewDashboard"`
HistoryDashboard string `yaml:"historyDashboard"`
}

type Config struct {
Host string `yaml:"host"`
Namespace string `yaml:"namespace"`
Expand Down

0 comments on commit 4fd3c8e

Please sign in to comment.