Update the deployment templates to comply with the slack bot changes (#766)

The latest slack bot changes introduce two environment variables
(bot token and app token). Take that changes into account for deployment
 manifests.

Co-authored-by: Benjamin Moermans <b.moermans@aegaeon-it.com>
811
benjamin3322 2025-04-09 09:09:37 +02:00 committed by GitHub
parent 3989c0d2e7
commit d6eb2583af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 5 deletions

View File

@ -96,7 +96,8 @@ The following table lists has the main configurable parameters (polling, trigger
| `webhook.endpoint` | Remote webhook endpoint | |
| `slack.enabled` | Enable/disable Slack Notification | `false` |
| `slack.botName` | Name of the Slack bot | |
| `slack.token` | Slack token | |
| `slack.botToken` | Slack bot token | |
| `slack.appToken` | Slack application level token | |
| `slack.channel` | Slack channel | |
| `slack.approvalsChannel` | Slack channel for approvals | |
| `teams.enabled` | Enable/disable MS Teams Notification | `false` |

View File

@ -15,7 +15,8 @@ data:
AWS_SECRET_ACCESS_KEY: {{ .Values.ecr.secretAccessKey | b64enc }}
{{- end }}
{{- if .Values.slack.enabled }}
SLACK_TOKEN: {{ .Values.slack.token | b64enc }}
SLACK_BOT_TOKEN: {{ .Values.slack.botToken | b64enc }}
SLACK_APP_TOKEN: {{ .Values.slack.appToken | b64enc }}
{{- end }}
{{- if .Values.googleApplicationCredentials }}
google-application-credentials.json: {{ .Values.googleApplicationCredentials }}

View File

@ -72,7 +72,8 @@ webhook:
slack:
enabled: false
botName: ""
token: ""
appToken: ""
botToken: ""
channel: ""
approvalsChannel: ""

View File

@ -185,8 +185,10 @@ spec:
# Enable MS Teams webhook endpoint
- name: TEAMS_WEBHOOK_URL
value: "{{ .teams_webhook_url }}"
- name: SLACK_TOKEN
value: "{{ .slack_token }}"
- name: SLACK_APP_TOKEN
value: "{{ .slack_app_token }}"
- name: SLACK_BOT_TOKEN
value: "{{ .slack_bot_token }}"
- name: SLACK_CHANNELS
value: "{{ .slack_channel | default "general" }}"
- name: SLACK_APPROVALS_CHANNEL