simpler append of subscriptions
This commit is contained in:
parent
36ae990538
commit
6b60d78f5f
2 changed files with 274 additions and 279 deletions
|
@ -1,10 +1,4 @@
|
|||
{{- if and .Values.notifications.enabled .Values.notifications.cm.create }}
|
||||
{{- $subscriptions := slice }}
|
||||
{{- range $key, $value := .Values.notifications.subscriptions }}
|
||||
{{- $subscriptions = append $subscriptions $key }}
|
||||
{{- end }}
|
||||
|
||||
{{- $subscriptions = append $subscriptions .Values.codefresh.promotions.notifications.subscriptions }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
@ -21,7 +15,7 @@ data:
|
|||
{{- with $notifiers }}
|
||||
{{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- with $subscriptions }}
|
||||
{{- with (append .Values.notifications.subscriptions .Values.codefresh.promotions.notifications.subscriptions) }}
|
||||
subscriptions: |
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
|
|
@ -3543,7 +3543,7 @@ notifications:
|
|||
# defaultTriggers: |
|
||||
# - on-sync-status-unknown
|
||||
|
||||
codefresh:
|
||||
|
||||
eventReporter:
|
||||
# Enabled we need to skip argo-cd chart tests for this component
|
||||
enabled: true
|
||||
|
@ -3823,5 +3823,6 @@ codefresh:
|
|||
# -- List of custom rules for the event reporter's ClusterRole resource
|
||||
rules: []
|
||||
|
||||
codefresh:
|
||||
promotions:
|
||||
notifications: {}
|
||||
|
|
Loading…
Reference in a new issue