Skip to content

Commit

Permalink
simpler append of subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed May 12, 2024
1 parent 36ae990 commit 6b60d78
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 263 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand Down
Loading

0 comments on commit 6b60d78

Please sign in to comment.