This commit is contained in:
allard
2025-12-05 23:28:37 +01:00
parent 3004a30caf
commit e7dc54ae67
7 changed files with 62 additions and 33 deletions

View File

@@ -27,10 +27,18 @@ ingress:
jsonPointers:
- /metadata/annotations/argocd.argoproj.io~1tracking-id
applicationController:
persistence:
enabled: true
existingClaim: argocd-pvc
server:
tls:
enabled: true
secretName: argocd-tls-cert
persistence:
enabled: true
existingClaim: argocd-pvc
repoServer:
extraArgs:
@@ -48,34 +56,21 @@ repoServer:
timeoutSeconds: 2
failureThreshold: 10
persistence:
enabled: true
existingClaim: argocd-pvc
notifications:
enabled: true
name: notifications-controller
# Context available in templates
context:
argocdUrl: "https://argocd-dev.allarddcs.nl"
# Secret for SMTP credentials
secret:
create: true
name: argocd-notifications-secret
items:
email-username: "argocd@allarddcs.nl"
email-password: "Argocd01@"
notifiers:
service.email: |
host: mail.allarddcs.nl
port: 587
from: argocd@allarddcs.nl
username: argocd@allarddcs.nl
password: Argocd01@
starttls: true
# ConfigMap used by notifications-controller
cm:
create: false
extra:
service.email.smtp: |
host: mail.allarddcs.nl
port: 587
from: argocd@allarddcs.nl
username: argocd@allarddcs.nl
password: Argocd01@
starttls: true
# Templates
templates:
app-sync-failed: |
email:
@@ -85,16 +80,18 @@ notifications:
Error: {{.app.status.operationState.message}}
More details: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true
# Triggers
triggers:
on-sync-failed: |
trigger.on-sync-failed: |
- description: Application syncing has failed
send: [app-sync-failed]
send:
- app-sync-failed
when: app.status.operationState != nil and app.status.operationState.phase in ['Error','Failed']
# Subscriptions
subscriptions:
- recipients:
- admin@allarddcs.nl
- email:admin@allarddcs.nl
triggers:
- on-sync-failed
context:
argocdUrl: https://argocd-dev.allarddcs.nl