-
Notifications
You must be signed in to change notification settings - Fork 1
/
register.go
40 lines (37 loc) · 978 Bytes
/
register.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package vshnkeycloak
import (
vshnv1 "github.com/vshn/appcat/v4/apis/vshn/v1"
"github.com/vshn/appcat/v4/pkg/comp-functions/functions/common"
"github.com/vshn/appcat/v4/pkg/comp-functions/functions/common/nonsla"
"github.com/vshn/appcat/v4/pkg/comp-functions/runtime"
)
func init() {
runtime.RegisterService("keycloak", runtime.Service{
Steps: []runtime.Step{
{
Name: "deploy",
Execute: DeployKeycloak,
},
{
Name: "maintenance",
Execute: AddMaintenanceJob,
},
{
Name: "ingress",
Execute: AddIngress,
},
{
Name: "mailgun-alerting",
Execute: common.MailgunAlerting(&vshnv1.VSHNKeycloak{}),
},
{
Name: "user-alerting",
Execute: common.AddUserAlerting(&vshnv1.VSHNKeycloak{}),
},
{
Name: "non-sla-prometheus-rules",
Execute: nonsla.GenerateNonSLAPromRules(&vshnv1.VSHNKeycloak{}, nonsla.NewAlertSetBuilder("keycloak", "keycloak").AddMemory().GetAlerts()),
},
},
})
}