-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd-notifications | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: master | ||
path: argocd/setup-notifications/overlays/slack | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd-notifications | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: master | ||
path: argocd/setup-notifications/base | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: argocd | ||
|
||
source: | ||
repoURL: https://github.com/nakamasato/kubernetes-training.git | ||
targetRevision: main | ||
path: contents/argocd/setup | ||
|
||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: argocd | ||
|
||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: argocd | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: manage argocd by argocd | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: argocd | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: apiextensions.k8s.io | ||
kind: CustomResourceDefinition | ||
- group: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
- group: rbac.authorization.k8s.io | ||
kind: ClusterRoleBinding | ||
- group: '' | ||
kind: Namespace | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook-kustomize-dev | ||
namespace: argocd | ||
labels: | ||
app: guestbook-ui | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: argocd-notifications-guestbook-ui | ||
spec: | ||
project: dev | ||
|
||
# Source of the application manifests | ||
source: | ||
repoURL: https://github.com/nakamasato/k8s-deploy-test.git | ||
targetRevision: dev | ||
path: apps/guestbook-kustomize/overlays/dev | ||
|
||
# Destination cluster and namespace to deploy the application | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: dev | ||
|
||
# Sync policy | ||
syncPolicy: | ||
automated: | ||
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). | ||
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). | ||
syncOptions: | ||
- CreateNamespace=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: dev | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: dev only allows to deploy applications in `dev` namespace | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: dev | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: "*" | ||
kind: "*" | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: kserve-test | ||
namespace: argocd | ||
labels: | ||
app: kserve-test | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
annotations: | ||
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: argocd-notifications-guestbook-ui | ||
spec: | ||
project: kserve-test | ||
|
||
# Source of the application manifests | ||
source: | ||
repoURL: https://github.com/nakamasato/kubeflow-training.git | ||
targetRevision: add-kserve | ||
path: kserve | ||
|
||
# Destination cluster and namespace to deploy the application | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: kserve-test | ||
|
||
# Sync policy | ||
syncPolicy: | ||
automated: | ||
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). | ||
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). | ||
syncOptions: | ||
- CreateNamespace=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: kserve-test | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io # not to delete AppProject before deleting its Applications | ||
spec: | ||
description: kserve-test | ||
|
||
sourceRepos: | ||
- "*" | ||
|
||
destinations: | ||
- namespace: kserve-test | ||
server: https://kubernetes.default.svc | ||
|
||
clusterResourceWhitelist: | ||
- group: "*" | ||
kind: "*" | ||
|
||
namespaceResourceBlacklist: | ||
- group: "" | ||
kind: ResourceQuota | ||
- group: "" | ||
kind: LimitRange | ||
- group: "" | ||
kind: NetworkPolicy | ||
|
||
orphanedResources: | ||
warn: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
argocdUrl: https://localhost:8080 | ||
|
||
subscriptions: | ||
# subscription for on-sync-status-unknown trigger notifications | ||
- recipients: | ||
- slack:argocd-notifications | ||
triggers: | ||
- on-created | ||
- on-deleted | ||
- on-deployed | ||
- on-health-degraded | ||
- on-sync-failed | ||
- on-sync-running | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
# subscription restricted to applications with matching labels only | ||
- recipients: | ||
- slack:argocd-notifications-guestbook-ui | ||
selector: app=guestbook-ui | ||
triggers: | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
|
||
notifiers: | ||
service.slack: | | ||
token: $slack-token | ||
username: argocd-notifications | ||
icon: ":argo:" | ||
secret: | ||
items: | ||
slack-token: dummy | ||
|
||
templates: | ||
template.app-deployed: | | ||
email: | ||
subject: New version of an application {{.app.metadata.name}} is up and running. | ||
message: | | ||
{{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} is now running new version of deployments manifests. | ||
triggers: | ||
trigger.on-deployed: | | ||
- description: Application is synced and healthy. Triggered once per commit. | ||
oncePer: app.status.operationState.syncResult.revision | ||
send: | ||
- app-deployed | ||
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace: argocd | ||
bases: | ||
- https://raw.githubusercontent.com/argoproj-labs/argocd-notifications/v1.1.1/manifests/install.yaml | ||
patchesStrategicMerge: | ||
- https://raw.githubusercontent.com/argoproj-labs/argocd-notifications/v1.1.1/catalog/install.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argocd-notifications-cm | ||
data: | ||
# Contains centrally managed global application subscriptions | ||
context: | | ||
argocdUrl: localhost:8080 | ||
subscriptions: | | ||
# subscription for on-sync-status-unknown trigger notifications | ||
- recipients: | ||
- slack:argocd-notifications | ||
triggers: | ||
- on-created | ||
- on-deleted | ||
- on-deployed | ||
- on-health-degraded | ||
- on-sync-failed | ||
- on-sync-running | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
# subscription restricted to applications with matching labels only | ||
- recipients: | ||
- slack:argocd-notifications-guestbook-ui | ||
selector: app=guestbook-ui | ||
triggers: | ||
- on-sync-status-unknown | ||
- on-sync-succeeded | ||
service.slack: | | ||
token: $slack-token | ||
username: argocd-notifications | ||
icon: ":argo:" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: argocd-notifications-secret | ||
stringData: | ||
slack-token: xxxxx |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bases: | ||
- ../../base | ||
patchesStrategicMerge: | ||
- argocd-notifications-secret.yaml | ||
- argocd-notifications-cm.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace: argocd | ||
bases: | ||
- github.com/argoproj/argo-cd//manifests/cluster-install?ref=v2.7.9 |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.