Skip to content

Commit aa27903

Browse files
committed
Added support for extra init commands
1 parent 2d18dc1 commit aa27903

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

rstudio/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ spec:
2424
initContainers:
2525
- name: {{ .Chart.Name }}-init-mounts
2626
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
27-
command: ['sh', '-c', {{ include "rstudio.init-container-commands" . | squote }}]
27+
command: [
28+
'sh', '-c',
29+
'{{- if .Values.extraInitCommands -}}
30+
{{- tpl .Values.extraInitCommands $ | nindent 13 }};
31+
{{- end -}}
32+
{{ include "rstudio.init-container-commands" . }}']
2833
volumeMounts:
2934
{{- range $entry := .Values.mutableConfigs }}
3035
{{ if $entry -}}

rstudio/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,7 @@ useSecretConfigs: false
9696
# subPath: ".rstudio/monitored/user-settings/"
9797
# contents: |
9898
# initialWorkingDirectory="/opt/project/shared-data"
99+
100+
extraInitCommands: |
101+
# cp -r /etc/skel /gvl/projects/current/
102+
# /galaxy/server/extra/mapped/script.sh

0 commit comments

Comments
 (0)