Skip to content

Commit 318acca

Browse files
authored
Deploy postgres/redis alerts as subcharts (#1277)
Signed-off-by: sami <sami@appscode.com>
1 parent e4b0165 commit 318acca

10 files changed

Lines changed: 234 additions & 490 deletions

File tree

apis/installer/v1alpha1/ace_ace_types.go

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,24 @@ type Ace struct {
5252

5353
// AceSpec is the schema for Ace Operator values file
5454
type AceSpec struct {
55-
PlatformUi AcePlatformUi `json:"platform-ui"`
56-
ClusterUi AceClusterUi `json:"cluster-ui"`
57-
Grafana AceGrafana `json:"grafana"`
58-
Perses AcePerses `json:"perses"`
59-
KubedbUi AceKubedbUi `json:"kubedb-ui"`
60-
PlatformApi AcePlatformApi `json:"platform-api"`
61-
IngressNginx AceIngressNginx `json:"ingress-nginx"`
62-
Gateway AceGateway `json:"gateway"`
63-
IngressDns AceIngressDns `json:"ingress-dns"`
64-
Nats AceNats `json:"nats"`
65-
NatsDns AceNatsDns `json:"nats-dns"`
66-
Trickster AceTrickster `json:"trickster"`
67-
Openfga AceOpenfga `json:"openfga"`
68-
S3proxy AceS3proxy `json:"s3proxy"`
69-
PgOutbox AcePgOutbox `json:"pgoutbox"`
70-
OutboxSyncer AceOutboxSyncer `json:"outbox-syncer"`
55+
PlatformUi AcePlatformUi `json:"platform-ui"`
56+
ClusterUi AceClusterUi `json:"cluster-ui"`
57+
Grafana AceGrafana `json:"grafana"`
58+
Perses AcePerses `json:"perses"`
59+
KubedbUi AceKubedbUi `json:"kubedb-ui"`
60+
PlatformApi AcePlatformApi `json:"platform-api"`
61+
IngressNginx AceIngressNginx `json:"ingress-nginx"`
62+
Gateway AceGateway `json:"gateway"`
63+
IngressDns AceIngressDns `json:"ingress-dns"`
64+
Nats AceNats `json:"nats"`
65+
NatsDns AceNatsDns `json:"nats-dns"`
66+
Trickster AceTrickster `json:"trickster"`
67+
Openfga AceOpenfga `json:"openfga"`
68+
S3proxy AceS3proxy `json:"s3proxy"`
69+
PgOutbox AcePgOutbox `json:"pgoutbox"`
70+
OutboxSyncer AceOutboxSyncer `json:"outbox-syncer"`
71+
PostgresAlerts AcePostgresAlerts `json:"postgres-alerts"`
72+
RedisAlerts AceRedisAlerts `json:"redis-alerts"`
7173
// KubeBindServer AceKubeBindServer `json:"kube-bind-server"`
7274
Global AceGlobalValues `json:"global"`
7375
Settings Settings `json:"settings"`
@@ -185,6 +187,16 @@ type AceS3proxy struct {
185187
*S3proxySpec `json:",inline,omitempty"`
186188
}
187189

190+
type AcePostgresAlerts struct {
191+
Enabled bool `json:"enabled"`
192+
Form AceAlertForm `json:"form,omitempty"`
193+
}
194+
195+
type AceRedisAlerts struct {
196+
Enabled bool `json:"enabled"`
197+
Form AceAlertForm `json:"form,omitempty"`
198+
}
199+
188200
type AceGlobalValues struct {
189201
NameOverride string `json:"nameOverride"`
190202
FullnameOverride string `json:"fullnameOverride"`

apis/installer/v1alpha1/ace_shared_types.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,20 @@ type AceHook struct {
142142
HookWeight string `json:"hookWeight"`
143143
HookDeletePolicy string `json:"hookDeletePolicy"`
144144
}
145+
146+
type AceAlertForm struct {
147+
Alert AceAlertConfig `json:"alert,omitempty"`
148+
}
149+
150+
type AceAlertConfig struct {
151+
AppSuffix string `json:"appSuffix,omitempty"`
152+
Groups AceAlertGroups `json:"groups,omitempty"`
153+
}
154+
155+
type AceAlertGroups struct {
156+
Stash AceStashGroup `json:"stash,omitempty"`
157+
}
158+
159+
type AceStashGroup struct {
160+
Enabled string `json:"enabled"`
161+
}

apis/installer/v1alpha1/zz_generated.deepcopy.go

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/ace/Chart.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,11 @@ dependencies:
4141
- name: perses
4242
repository: oci://ghcr.io/appscode-charts
4343
version: v2026.4.30
44-
digest: sha256:51306d8960e8ba0feb0f46b472f4834d35361a1e261f3d7f4aaaa22b093839db
45-
generated: "2026-06-21T16:43:15.643432987Z"
44+
- name: postgres-alerts
45+
repository: oci://ghcr.io/appscode-charts
46+
version: v2026.2.24
47+
- name: redis-alerts
48+
repository: oci://ghcr.io/appscode-charts
49+
version: v2026.2.24
50+
digest: sha256:2c17b4f1a0c656fd03cb1adfde74bc352171c0f0086f3dff2d0b5a9ef4744f50
51+
generated: "2026-06-22T11:32:13.986278601+06:00"

charts/ace/Chart.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,11 @@ dependencies:
6868
repository: oci://ghcr.io/appscode-charts
6969
condition: perses.enabled
7070
version: v2026.4.30
71+
- name: postgres-alerts
72+
repository: oci://ghcr.io/appscode-charts
73+
condition: postgres-alerts.enabled
74+
version: v2026.2.24
75+
- name: redis-alerts
76+
repository: oci://ghcr.io/appscode-charts
77+
condition: redis-alerts.enabled
78+
version: v2026.2.24

charts/ace/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ The following table lists the configurable parameters of the `ace` chart and the
6767
| openfga.datastoreURI | | <code>""</code> |
6868
| pgoutbox.enabled | | <code>false</code> |
6969
| outbox-syncer.enabled | | <code>false</code> |
70+
| postgres-alerts.enabled | | <code>true</code> |
71+
| postgres-alerts.form.alert.appSuffix | | <code>"-db"</code> |
72+
| postgres-alerts.form.alert.groups.stash.enabled | | <code>""</code> |
73+
| redis-alerts.enabled | | <code>true</code> |
74+
| redis-alerts.form.alert.appSuffix | | <code>"-cache"</code> |
75+
| redis-alerts.form.alert.groups.stash.enabled | | <code>""</code> |
7076
| global.nameOverride | | <code>"ace"</code> |
7177
| global.fullnameOverride | | <code>""</code> |
7278
| global.platform.host | | <code>appscode.ninja</code> |

0 commit comments

Comments
 (0)