Skip to content

Commit

Permalink
adding mailgun and alerting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz.widera@vshn.ch committed Nov 7, 2023
1 parent ed76643 commit 93fb216
Show file tree
Hide file tree
Showing 18 changed files with 4,948 additions and 15 deletions.
2 changes: 1 addition & 1 deletion component/class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ parameters:
appcat:
registry: ghcr.io
repository: vshn/appcat
tag: v4.37.0
tag: redis_user_alerting
apiserver:
registry: ghcr.io
repository: vshn/appcat-apiserver
Expand Down
6 changes: 6 additions & 0 deletions component/component/vshn_redis.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,12 @@ local composition =
controlNamespace: params.services.controlNamespace,
restoreSA: 'redisrestoreserviceaccount',
quotasEnabled: std.toString(params.services.vshn.quotasEnabled),
emailAlertingEnabled: std.toString(params.services.vshn.emailAlerting.enabled),
emailAlertingSecretNamespace: params.services.vshn.emailAlerting.secretNamespace,
emailAlertingSecretName: params.services.vshn.emailAlerting.secretName,
emailAlertingSmtpFromAddress: params.services.vshn.emailAlerting.smtpFromAddress,
emailAlertingSmtpUsername: params.services.vshn.emailAlerting.smtpUsername,
emailAlertingSmtpHost: params.services.vshn.emailAlerting.smtpHost,
},
},
container: {
Expand Down
1 change: 1 addition & 0 deletions component/smtpSecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
password: password
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
env:
- name: PLANS_NAMESPACE
value: syn-appcat
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNREDIS
value: "false"
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
data:
controlNamespace: syn-appcat-control
defaultPlan: standard-1
imageTag: v4.37.0
imageTag: redis_user_alerting
maintenanceSA: helm-based-service-maintenance
minioChartRepository: https://charts.min.io
minioChartVersion: 5.0.13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
env:
- name: PLANS_NAMESPACE
value: syn-appcat
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
envFrom:
- secretRef:
name: appcat-sla-reports-creds
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
name: sla-reporter
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNREDIS
value: "false"
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNREDIS
value: "false"
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
4,920 changes: 4,920 additions & 0 deletions component/tests/golden/vshn/appcat/appcat/20_xrd_vshn_redis.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
data:
controlNamespace: syn-appcat-control
defaultPlan: standard-1
imageTag: v4.37.0
imageTag: redis_user_alerting
maintenanceSA: helm-based-service-maintenance
minioChartRepository: https://charts.min.io
minioChartVersion: 5.0.13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
emailAlertingSmtpHost: smtp.eu.mailgun.org:465
emailAlertingSmtpUsername: myuser@example.com
externalDatabaseConnectionsEnabled: 'true'
imageTag: v4.37.0
imageTag: redis_user_alerting
quotasEnabled: 'false'
sgNamespace: stackgres
sideCars: '{"clusterController": {"limits": {"cpu": "32m", "memory": "2Gi"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
emailAlertingSmtpHost: smtp.eu.mailgun.org:465
emailAlertingSmtpUsername: myuser@example.com
externalDatabaseConnectionsEnabled: 'true'
imageTag: v4.37.0
imageTag: redis_user_alerting
quotasEnabled: 'false'
sgNamespace: stackgres
sideCars: '{"clusterController": {"limits": {"cpu": "32m", "memory": "2Gi"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ spec:
data:
bucketRegion: lpg
controlNamespace: syn-appcat-control
imageTag: v4.37.0
emailAlertingEnabled: 'true'
emailAlertingSecretName: mailgun-smtp-credentials
emailAlertingSecretNamespace: syn-appcat
emailAlertingSmtpFromAddress: myuser@example.com
emailAlertingSmtpHost: smtp.eu.mailgun.org:465
emailAlertingSmtpUsername: myuser@example.com
imageTag: redis_user_alerting
maintenanceSA: helm-based-service-maintenance
quotasEnabled: 'false'
restoreSA: redisrestoreserviceaccount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
env:
- name: PLANS_NAMESPACE
value: syn-appcat
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
envFrom:
- secretRef:
name: appcat-sla-reports-creds
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
name: sla-reporter
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
value: "true"
- name: APPCAT_SLI_VSHNREDIS
value: "true"
image: ghcr.io/vshn/appcat:v4.37.0
image: ghcr.io/vshn/appcat:redis_user_alerting
livenessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit 93fb216

Please sign in to comment.