Skip to content

Commit

Permalink
ExtraFiles tweaks (#309)
Browse files Browse the repository at this point in the history
* Remove path

* Make tpl optional

* Run welcome through `tpl`
  • Loading branch information
almahmoud authored Jul 8, 2021
1 parent a602da5 commit 85d6931
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions galaxy/templates/configmap-extra-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ kind: ConfigMap
data:
{{- end }}
{{- include "galaxy.getFilenameFromPath" $key | nindent 2 }}: |
{{- if $entry.path }}
{{- ($.Files.Get $entry.path) | nindent 4 }}
{{- else }}
{{- if $entry.tpl }}
{{- tpl (tpl $entry.content $) $ | nindent 4 }}
{{- else }}
{{- $entry.content | nindent 4 }}
{{- end }}
---
{{- end }}
Expand All @@ -33,4 +33,4 @@ data:
probedb.py: |
{{- (.Files.Get "scripts/probedb.py") | nindent 4 }}
---
---
1 change: 1 addition & 0 deletions galaxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ extraFileMappings:
applyToJob: false
applyToWeb: true
applyToWorkflow: false
tpl: true
content: |
<!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit 85d6931

Please sign in to comment.