Skip to content

Commit

Permalink
Merge pull request #47 from ArthurVardevanyan/argocd-notifications
Browse files Browse the repository at this point in the history
feat: ArgoCD notifications
  • Loading branch information
ArthurVardevanyan authored Feb 16, 2024
2 parents 1daed61 + d34a4b1 commit 087acaa
Show file tree
Hide file tree
Showing 60 changed files with 521 additions and 42 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
"errexit",
"etab",
"eventlisteners",
"externalsecrets",
"ezservermonitor",
"ezweb",
"fdisk",
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/bitwarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/certificate-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/cockroachdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/dragonfly-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/eclipse-che-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/external-secrets-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/gitea.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
9 changes: 9 additions & 0 deletions kubernetes/argocd/applications/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand All @@ -20,3 +24,8 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- group: ""
kind: "Secret"
managedFieldsManagers:
- externalsecrets.external-secrets.io/database
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/heimdall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/homeassistant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
6 changes: 6 additions & 0 deletions kubernetes/argocd/applications/homelab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand All @@ -17,6 +21,8 @@ spec:
path: tekton/overlays/okd
repoURL: https://git.arthurvardevanyan.com/ArthurVardevanyan/HomeLab
targetRevision: HEAD
plugin:
name: argocd-vault-plugin-kustomize
syncPolicy:
syncOptions:
- CreateNamespace=true
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/imagepuller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/influxdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/heimdall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/kubernetes-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/longhorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/stackrox-secure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/k3s/vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
6 changes: 6 additions & 0 deletions kubernetes/argocd/applications/keep-alive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand All @@ -17,6 +21,8 @@ spec:
path: kubernetes/keep-alive/overlays/okd
repoURL: https://git.arthurvardevanyan.com/ArthurVardevanyan/HomeLab
targetRevision: HEAD
plugin:
name: argocd-vault-plugin-kustomize
syncPolicy:
syncOptions:
- CreateNamespace=true
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/knative.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/kube-eagle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/kube-vip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
9 changes: 9 additions & 0 deletions kubernetes/argocd/applications/longhorn-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand All @@ -20,3 +24,8 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- group: ""
kind: "Secret"
managedFieldsManagers:
- externalsecrets.external-secrets.io/truenas-secret
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/mariadb-galera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/minio-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/mongodb-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/argocd/applications/network-observability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
notifications.argoproj.io/subscribe.on-sync-succeeded.github: ""
notifications.argoproj.io/subscribe.on-sync-failed.github: ""
notifications.argoproj.io/subscribe.on-sync-status-unknown: ""
notifications.argoproj.io/subscribe.on-health-degraded.github: ""
labels:
app.kubernetes.io/instance: argocd
spec:
Expand Down
Loading

0 comments on commit 087acaa

Please sign in to comment.