add telegram notifications for outdated charts

This commit is contained in:
Nikolai Rodionov 2023-09-14 07:03:41 +02:00
parent 8cfd4bf88d
commit 63968337e2
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
4 changed files with 13 additions and 5 deletions

View File

@ -105,4 +105,16 @@ steps:
SOPS_AGE_KEY:
from_secret: SOPS_AGE_KEY
commands:
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o
- echo "Hey, bud, some helm releases are outdated:" > message_file.tpl
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o >> message_file.tpl
- name: Send telegram notification
when:
status:
- failure
image: appleboy/drone-telegram
settings:
token:
from_secret: TELEGRAM_TOKEN
to: 131601077
message_file: message_file.tpl

View File

@ -87,5 +87,3 @@ bases:
- ../environments.yaml
- ../repositories.yaml
#helmfiles:
# - namespaces.yaml

0
message_file.tpl Normal file
View File

View File

@ -2,8 +2,6 @@
repositories:
- name: metrics-server
url: https://kubernetes-sigs.github.io/metrics-server/
- name: allanger-charts
url: https://allanger.github.io/allanger-charts
- name: jetstack
url: https://charts.jetstack.io
- name: istio