Skip to content

Commit

Permalink
Merge pull request #169 from vshn/keycloak_mariadb_alerting
Browse files Browse the repository at this point in the history
Add Keycloak&Mariadb alerting, non-sla rules
  • Loading branch information
wejdross authored May 30, 2024
2 parents 99b6394 + aa12d11 commit 24c299a
Show file tree
Hide file tree
Showing 20 changed files with 17,963 additions and 362 deletions.
11 changes: 11 additions & 0 deletions apis/vshn/v1/dbaas_vshn_keycloak.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ type VSHNKeycloakParameters struct {
// Maintenance contains settings to control the maintenance of an instance.
Maintenance VSHNDBaaSMaintenanceScheduleSpec `json:"maintenance,omitempty"`

// Monitoring contains settings to control monitoring.
Monitoring VSHNMonitoring `json:"monitoring,omitempty"`

// Security defines the security of a service
Security Security `json:"security,omitempty"`

Expand Down Expand Up @@ -181,6 +184,10 @@ func (v *VSHNKeycloak) GetInstanceNamespace() string {
return fmt.Sprintf("vshn-keycloak-%s", v.GetName())
}

func (v *XVSHNKeycloak) GetInstanceNamespace() string {
return fmt.Sprintf("vshn-keycloak-%s", v.GetName())
}

func (v *VSHNKeycloak) SetInstanceNamespaceStatus() {
v.Status.InstanceNamespace = v.GetInstanceNamespace()
}
Expand Down Expand Up @@ -290,3 +297,7 @@ func (v *VSHNKeycloak) GetAllowedNamespaces() []string {
}
return append(v.Spec.Parameters.Security.AllowedNamespaces, v.GetClaimNamespace())
}

func (v *VSHNKeycloak) GetVSHNMonitoring() VSHNMonitoring {
return v.Spec.Parameters.Monitoring
}
3 changes: 3 additions & 0 deletions apis/vshn/v1/dbaas_vshn_mariadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ type VSHNMariaDBParameters struct {
// Maintenance contains settings to control the maintenance of an instance.
Maintenance VSHNDBaaSMaintenanceScheduleSpec `json:"maintenance,omitempty"`

// Monitoring contains settings to control monitoring.
Monitoring VSHNMonitoring `json:"monitoring,omitempty"`

// Security defines the security of a service
Security Security `json:"security,omitempty"`
}
Expand Down
2 changes: 2 additions & 0 deletions apis/vshn/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4,066 changes: 4,066 additions & 0 deletions crds/vshn.appcat.vshn.io_vshnkeycloaks.yaml

Large diffs are not rendered by default.

4,066 changes: 4,066 additions & 0 deletions crds/vshn.appcat.vshn.io_vshnmariadbs.yaml

Large diffs are not rendered by default.

4,736 changes: 4,736 additions & 0 deletions crds/vshn.appcat.vshn.io_xvshnkeycloaks.yaml

Large diffs are not rendered by default.

4,736 changes: 4,736 additions & 0 deletions crds/vshn.appcat.vshn.io_xvshnmariadbs.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/comp-functions/functions/common/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func AddUserAlerting(obj client.Object) func(ctx context.Context, svc *runtime.S
return func(ctx context.Context, svc *runtime.ServiceRuntime) *fnproto.Result {

log := controllerruntime.LoggerFrom(ctx)
log.Info("Check if alerting references are set")
log.Info("Checking if alerting references are set")

log.V(1).Info("Transforming", "obj", svc)

Expand Down
145 changes: 0 additions & 145 deletions pkg/comp-functions/functions/common/alerting_test.go

This file was deleted.

167 changes: 0 additions & 167 deletions pkg/comp-functions/functions/common/non_sla_prom_rules.go

This file was deleted.

Loading

0 comments on commit 24c299a

Please sign in to comment.