-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tainguyenbp/feat/test-notification-argocd
Create readme.md
- Loading branch information
Showing
11 changed files
with
776 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
35
argocd/notification/application-notifications-telegram.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.