Story (Required)
As a QE I want to be notified immediately when task run cleanup-cloud-resources (generated by a cron job with the same name) fails.
Background (Required)
In the pipeline uninstall-cluster we send a Slack notifcation to #tektoncd-pipeline-ci channel when pipeline run finishes so we immediately know that it needs attention.
However, when the task run itself fails, it fails silently and it usually takes long time for somebody to notice that it's broken (typically you see very old cluster secrets on cluster).
Approach (Required)
Two approaches are possible
- Create cleanup-cloud-resources pipeline, similarly to uninstall-cluster. It should be possible to reuse existing task.
- Create a Slack step action and reference this step action inside cleanup-cloud-resources task using http resolver.