add telegram notifications for outdated charts
This commit is contained in:
parent
8cfd4bf88d
commit
63968337e2
14
.drone.yml
14
.drone.yml
@ -105,4 +105,16 @@ steps:
|
|||||||
SOPS_AGE_KEY:
|
SOPS_AGE_KEY:
|
||||||
from_secret: SOPS_AGE_KEY
|
from_secret: SOPS_AGE_KEY
|
||||||
commands:
|
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
|
||||||
|
@ -87,5 +87,3 @@ bases:
|
|||||||
- ../environments.yaml
|
- ../environments.yaml
|
||||||
- ../repositories.yaml
|
- ../repositories.yaml
|
||||||
|
|
||||||
#helmfiles:
|
|
||||||
# - namespaces.yaml
|
|
||||||
|
0
message_file.tpl
Normal file
0
message_file.tpl
Normal file
@ -2,8 +2,6 @@
|
|||||||
repositories:
|
repositories:
|
||||||
- name: metrics-server
|
- name: metrics-server
|
||||||
url: https://kubernetes-sigs.github.io/metrics-server/
|
url: https://kubernetes-sigs.github.io/metrics-server/
|
||||||
- name: allanger-charts
|
|
||||||
url: https://allanger.github.io/allanger-charts
|
|
||||||
- name: jetstack
|
- name: jetstack
|
||||||
url: https://charts.jetstack.io
|
url: https://charts.jetstack.io
|
||||||
- name: istio
|
- name: istio
|
||||||
|
Reference in New Issue
Block a user