Skip to content

Commit

Permalink
fix: bash comparison for true values in argo slack webhook notify (#2596
Browse files Browse the repository at this point in the history
)
  • Loading branch information
m0nhawk authored Jul 19, 2024
1 parent d4e2651 commit 9dff536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube/services/argo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ controller:
name: slack-webhook-secret
source: |
failure_reason=$(echo {{workflow.failures}} | jq 'any(.[]; .message == "Step exceeded its deadline")' )
if [ "$failure_reason" ]; then
if [ "$failure_reason" = "true" ]; then
curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"ALERT: Workflow {{workflow.name}} has been killed due to timeout\"}" "$SLACK_WEBHOOK_URL"
fi
Expand Down

0 comments on commit 9dff536

Please sign in to comment.