@@ -143,6 +143,7 @@ argo-cd:
143143 fullnameOverride : argo-cd
144144 crds :
145145 install : true
146+
146147 configs :
147148 cm :
148149 timeout.reconciliation : 20s
@@ -151,6 +152,7 @@ argo-cd:
151152 params :
152153 server.insecure : true
153154 application.namespaces : ' cf-*'
155+
154156 eventReporter :
155157 # -- Installs new event reporter component to cluster
156158 enabled : true
@@ -160,63 +162,12 @@ argo-cd:
160162 # Possible values: v1, v2.
161163 # For v2 `argo-cd.eventReporter.enabled=true` is required
162164 version : v2
165+
163166 applicationVersioning :
164167 # -- Enable application versioning
165168 enabled : true
166169 # -- Extract application version based on ApplicationConfiguration CRD
167170 useApplicationConfiguration : true
168- notifications :
169- enabled : true
170-
171- bots :
172- slack : {}
173-
174- notifiers :
175- service.webhook.cf-promotion-app-revision-changed-notifier : |
176- url: http://gitops-operator:8082/app-revision-changed
177- headers:
178- - name: Content-Type
179- value: application/json
180-
181- subscriptions :
182- - triggers :
183- - cf-promotion-on-deployed-trigger
184- recipients :
185- - cf-promotion-app-revision-changed-notifier
186- - triggers :
187- - cf-promotion-on-out-of-sync-trigger
188- recipients :
189- - cf-promotion-app-revision-changed-notifier
190-
191- templates :
192- template.cf-promotion-app-revision-changed-template : |
193- webhook:
194- cf-promotion-app-revision-changed-notifier:
195- method: POST
196- body: |
197- {
198- "APP_NAMESPACE": {{ .app.metadata.namespace | quote }},
199- "APP_NAME": {{ .app.metadata.name | quote }},
200- "REPO_URL": {{ call .repo.RepoURLToHTTPS .app.spec.source.repoURL | quote }},
201- "BRANCH": {{ .app.spec.source.targetRevision | quote }},
202- "PATH": {{ .app.spec.source.path | quote }},
203- "PREV_COMMIT_SHA": {{ (index .app.status.history (sub (len .app.status.history) 2)).revision | quote }},
204- "CURRENT_COMMIT_SHA": {{ .app.status.operationState.syncResult.revision | quote }}
205- }
206-
207- triggers :
208- trigger.cf-promotion-on-deployed-trigger : |
209- - description: Application is synced and healthy. Triggered once per commit.
210- when: get(app.spec.syncPolicy, "automated") != nil && app.status.sync.status == "Synced" && app.status.health.status == "Healthy" && app.status.operationState.syncResult.revision != nil
211- oncePer: app.status.operationState.syncResult.revision
212- send:
213- - cf-promotion-app-revision-changed-template
214- trigger.cf-promotion-on-out-of-sync-trigger : |
215- - description: Application is out of sync (when autoHeal is off). Triggered once per commit.
216- when: get(app.spec.syncPolicy, "automated") == nil && app.status.sync.status == "OutOfSync" && app.status.operationState.syncResult.revision != nil
217- oncePer: app.status.operationState.syncResult.revision
218- send:
219- - cf-promotion-app-revision-changed-template
220171
221172# -----------------------------------------------------------------------------------------------------------------------
222173# Argo Events
@@ -675,6 +626,7 @@ gitops-operator:
675626 requests :
676627 cpu : 100m
677628 memory : 64Mi
629+
678630# -- Builtin Workflows artifacts storage solution. Local S3 backed by local persistence with (PV and PVC)
679631garage-workflows-artifact-storage :
680632 fullnameOverride : garage
0 commit comments