From 369d5453e0624705b6329331dc7c117d65a89d13 Mon Sep 17 00:00:00 2001 From: snothub Date: Sun, 29 Mar 2026 21:07:26 +0200 Subject: [PATCH] notification fix --- bootstrap.sh | 2 +- infra/values/argocd-values.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 88c4473..23558fe 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -10,7 +10,7 @@ echo "running $0..." Bootstrap() { ArgoCd - Github +# Github } diff --git a/infra/values/argocd-values.yaml b/infra/values/argocd-values.yaml index 192e309..b20b9e9 100644 --- a/infra/values/argocd-values.yaml +++ b/infra/values/argocd-values.yaml @@ -34,7 +34,7 @@ notifications: method: POST body: | { - "payload": "🖥️ {{ .context.clusterName }}: 🔄 *{{ .app.metadata.name }}* is syncing...\n📦 Revision: {{ .app.status.sync.revision | substr 0 7 }}" + "payload": "🖥️ {{ .context.clusterName }}: 🔄 *{{ .app.metadata.name }}* is syncing...\n📦 Revision: {{ .app.status.sync.revision | default \"n/a\" | substr 0 7 }}" } template.app-sync-succeeded: | webhook: @@ -42,7 +42,7 @@ notifications: method: POST body: | { - "payload": "🖥️ {{ .context.clusterName }}: ✅ *{{ .app.metadata.name }}* sync succeeded\n📦 Revision: {{ .app.status.sync.revision | substr 0 7 }}{{ range .app.status.summary.images }}\n🏷️ Image: {{ . }}{{ end }}" + "payload": "🖥️ {{ .context.clusterName }}: ✅ *{{ .app.metadata.name }}* sync succeeded\n📦 Revision: {{ .app.status.sync.revision | default \"n/a\" | substr 0 7 }}{{ range .app.status.summary.images }}\n🏷️ Image: {{ . }}{{ end }}" } template.app-sync-failed: | webhook: @@ -50,7 +50,7 @@ notifications: method: POST body: | { - "payload": "🖥️ {{ .context.clusterName }}: ❌ *{{ .app.metadata.name }}* sync failed\n📦 Revision: {{ .app.status.sync.revision | substr 0 7 }}\n⚠️ Message: {{ .app.status.operationState.message }}" + "payload": "🖥️ {{ .context.clusterName }}: ❌ *{{ .app.metadata.name }}* sync failed\n📦 Revision: {{ .app.status.sync.revision | default \"n/a\" | substr 0 7 }}\n⚠️ Message: {{ .app.status.operationState.message }}" } template.app-degraded: | webhook: @@ -58,7 +58,7 @@ notifications: method: POST body: | { - "payload": "🖥️ {{ .context.clusterName }}: ⚠️ *{{ .app.metadata.name }}* is degraded\n🏥 Health: {{ .app.status.health.status }}\n📦 Revision: {{ .app.status.sync.revision | substr 0 7 }}{{ range .app.status.summary.images }}\n🏷️ Image: {{ . }}{{ end }}" + "payload": "🖥️ {{ .context.clusterName }}: ⚠️ *{{ .app.metadata.name }}* is degraded\n🏥 Health: {{ .app.status.health.status }}\n📦 Revision: {{ .app.status.sync.revision | default \"n/a\" | substr 0 7 }}{{ range .app.status.summary.images }}\n🏷️ Image: {{ . }}{{ end }}" } # Define notification triggers