Skip to content

Remove old notifications values #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 4 additions & 52 deletions charts/gitops-runtime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ argo-cd:
fullnameOverride: argo-cd
crds:
install: true

configs:
cm:
timeout.reconciliation: 20s
Expand All @@ -151,6 +152,7 @@ argo-cd:
params:
server.insecure: true
application.namespaces: 'cf-*'

eventReporter:
# -- Installs new event reporter component to cluster
enabled: true
Expand All @@ -160,63 +162,12 @@ argo-cd:
# Possible values: v1, v2.
# For v2 `argo-cd.eventReporter.enabled=true` is required
version: v2

applicationVersioning:
# -- Enable application versioning
enabled: true
# -- Extract application version based on ApplicationConfiguration CRD
useApplicationConfiguration: true
notifications:
enabled: true

bots:
slack: {}

notifiers:
service.webhook.cf-promotion-app-revision-changed-notifier: |
url: http://gitops-operator:8082/app-revision-changed
headers:
- name: Content-Type
value: application/json

subscriptions:
- triggers:
- cf-promotion-on-deployed-trigger
recipients:
- cf-promotion-app-revision-changed-notifier
- triggers:
- cf-promotion-on-out-of-sync-trigger
recipients:
- cf-promotion-app-revision-changed-notifier

templates:
template.cf-promotion-app-revision-changed-template: |
webhook:
cf-promotion-app-revision-changed-notifier:
method: POST
body: |
{
"APP_NAMESPACE": {{ .app.metadata.namespace | quote }},
"APP_NAME": {{ .app.metadata.name | quote }},
"REPO_URL": {{ call .repo.RepoURLToHTTPS .app.spec.source.repoURL | quote }},
"BRANCH": {{ .app.spec.source.targetRevision | quote }},
"PATH": {{ .app.spec.source.path | quote }},
"PREV_COMMIT_SHA": {{ (index .app.status.history (sub (len .app.status.history) 2)).revision | quote }},
"CURRENT_COMMIT_SHA": {{ .app.status.operationState.syncResult.revision | quote }}
}

triggers:
trigger.cf-promotion-on-deployed-trigger: |
- description: Application is synced and healthy. Triggered once per commit.
when: get(app.spec.syncPolicy, "automated") != nil && app.status.sync.status == "Synced" && app.status.health.status == "Healthy" && app.status.operationState.syncResult.revision != nil
oncePer: app.status.operationState.syncResult.revision
send:
- cf-promotion-app-revision-changed-template
trigger.cf-promotion-on-out-of-sync-trigger: |
- description: Application is out of sync (when autoHeal is off). Triggered once per commit.
when: get(app.spec.syncPolicy, "automated") == nil && app.status.sync.status == "OutOfSync" && app.status.operationState.syncResult.revision != nil
oncePer: app.status.operationState.syncResult.revision
send:
- cf-promotion-app-revision-changed-template

#-----------------------------------------------------------------------------------------------------------------------
# Argo Events
Expand Down Expand Up @@ -675,6 +626,7 @@ gitops-operator:
requests:
cpu: 100m
memory: 64Mi

# -- Builtin Workflows artifacts storage solution. Local S3 backed by local persistence with (PV and PVC)
garage-workflows-artifact-storage:
fullnameOverride: garage
Expand Down