Skip to content

Commit

Permalink
Merge pull request #2 from tainguyenbp/feat/test-notification-argocd
Browse files Browse the repository at this point in the history
Create readme.md
  • Loading branch information
tainguyenbp authored Jun 14, 2024
2 parents f909ac1 + 43d5357 commit 841b4dc
Show file tree
Hide file tree
Showing 11 changed files with 776 additions and 0 deletions.
1 change: 1 addition & 0 deletions argocd/deployments/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

30 changes: 30 additions & 0 deletions argocd/notification/application-notification-slack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nginx
namespace: argocd
annotations:
notifications.argoproj.io/subscribe.on-deployed.slack: alerts
notifications.argoproj.io/subscribe.on-sync-failed.slack: alerts
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: alerts
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/tainguyenbp/kubernetes-cluster.git
targetRevision: HEAD
path: nginx
destination:
server: https://kubernetes.default.svc
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- Validate=true
- CreateNamespace=false
- PrunePropagationPolicy=foreground
- PruneLast=true
35 changes: 35 additions & 0 deletions argocd/notification/application-notifications-telegram.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Create new Telegram channel.
# Add your bot as an administrator.
# Use this channel username (public channel) or chatID (private channel) in the subscription for your Telegram integration:
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nginx
namespace: argocd
annotations:
notifications.argoproj.io/subscribe.on-deployed.telegram: alerts
notifications.argoproj.io/subscribe.on-sync-failed.telegram: alerts
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: alerts
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: username
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: -1000000000000
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/tainguyenbp/kubernetes-cluster.git
targetRevision: HEAD
path: nginx
destination:
server: https://kubernetes.default.svc
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- Validate=true
- CreateNamespace=false
- PrunePropagationPolicy=foreground
- PruneLast=true
Loading

0 comments on commit 841b4dc

Please sign in to comment.