Skip to content

Commit

Permalink
Merge pull request #4057 from lsst-sqre/tickets/DM-48365/mobu-inject-…
Browse files Browse the repository at this point in the history
…services-from-argocd

DM-48365: mobu - Inject availableServices in the ArgoCD Application
  • Loading branch information
fajpunk authored Jan 9, 2025
2 parents 293baf0 + 38b2e99 commit 0b50638
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 0b50638

Please sign in to comment.