Skip to content

Commit

Permalink
Merge pull request #2350 from lsst-sqre/tickets/DM-40060b
Browse files Browse the repository at this point in the history
DM-40060: Change mobu disableSlackAlerts to slackAlerts
  • Loading branch information
rra authored Jul 25, 2023
2 parents bb213c1 + a42b8c6 commit d4bcacf
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion applications/mobu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Continuous integration testing
| affinity | object | `{}` | Affinity rules for the mobu frontend pod |
| config.autostart | list | `[]` | Autostart specification. Must be a list of mobu flock specifications. Each flock listed will be automatically started when mobu is started. |
| config.debug | bool | `false` | If set to true, include the output from all flocks in the main mobu log and disable structured JSON logging. |
| config.disableSlackAlerts | bool | `false` | If set to true, do not configure mobu to send alerts to Slack. |
| config.pathPrefix | string | `"/mobu"` | Prefix for mobu's API routes. |
| config.slackAlerts | bool | `true` | Whether to send alerts and status to Slack. |
| fullnameOverride | string | `""` | Override the full name for resources (includes the release name) |
| global.baseUrl | string | Set by Argo CD | Base URL for the environment |
| global.host | string | Set by Argo CD | Host name for ingress |
Expand Down
2 changes: 1 addition & 1 deletion applications/mobu/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
env:
{{- if (not .Values.config.disableSlackAlerts) }}
{{- if .Values.config.slackAlerts }}
- name: "ALERT_HOOK"
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions applications/mobu/templates/vault-secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.config.slackAlerts }}
apiVersion: ricoberger.de/v1alpha1
kind: VaultSecret
metadata:
Expand All @@ -7,3 +8,4 @@ metadata:
spec:
path: "{{ .Values.global.vaultSecretsPath }}/mobu"
type: "Opaque"
{{- end }}
2 changes: 1 addition & 1 deletion applications/mobu/values-minikube.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
config:
disableSlackAlerts: true
slackAlerts: false
2 changes: 1 addition & 1 deletion applications/mobu/values-usdfdev.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
config:
disableSlackAlerts: true
slackAlerts: false
2 changes: 1 addition & 1 deletion applications/mobu/values-usdfprod.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
config:
disableSlackAlerts: true
slackAlerts: false
4 changes: 2 additions & 2 deletions applications/mobu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ config:
# and disable structured JSON logging.
debug: false

# -- If set to true, do not configure mobu to send alerts to Slack.
disableSlackAlerts: false
# -- Whether to send alerts and status to Slack.
slackAlerts: true

# -- Prefix for mobu's API routes.
pathPrefix: "/mobu"
Expand Down

0 comments on commit d4bcacf

Please sign in to comment.