Skip to content

Commit

Permalink
DM-48365: mobu - Inject availableServices in the ArgoCD Application
Browse files Browse the repository at this point in the history
  • Loading branch information
fajpunk committed Jan 9, 2025
1 parent 0e95715 commit 38b2e99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions environments/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
{{- if $enabled }}@{{ $app }}{{ end }}
{{- end }}
{{- end }}

{{- define "enabledServicesYamlList" }}
{{- range $app, $enabled := .Values.applications }}
{{- if $enabled }}
- {{ $app | quote }}
{{- end }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions environments/templates/applications/infrastructure/mobu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ spec:
valueFiles:
- "values.yaml"
- "values-{{ .Values.name }}.yaml"
valuesObject:
config:
availableServices:
{{- include "enabledServicesYamlList" . | nindent 12 }}
{{- end -}}

0 comments on commit 38b2e99

Please sign in to comment.