File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change
1
+ {{- if and (and (.Values.orbital.workspace.enabled) (not (empty .Values.orbital.workspace.config))) ( not (.Values.orbital.workspace.configSuppliedAsConfigMap)) }}
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : {{ template "orbital.fullname" . }}-workspace-config
6
+ data :
7
+ workspaces.conf : |
8
+ {{ .Values.orbital.workspace.config | nindent 4 }}
9
+ {{- end}}
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ kind: ConfigMap
3
3
metadata :
4
4
name : {{ template "orbital.fullname" . }}-config
5
5
data :
6
- {{- if and (.Values.orbital.workspace.enabled) (not (empty .Values.orbital.workspace.config)) }}
7
- workspaces.conf : |
8
- {{ .Values.orbital.workspace.config | nindent 4 }}
9
- {{- end}}
10
6
{{- if .Values.orbital.project.enabled }}
11
7
taxi.conf : |
12
8
{{ .Values.orbital.project.config | nindent 4 }}
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ spec:
112
112
mountPath : /opt/service/config
113
113
- name : orbital-services-config
114
114
mountPath : /opt/service/config/services
115
+ - name : orbital-workspace-config
116
+ mountPath : /opt/service/config/workspace
115
117
{{- if .Values.userDefinedVolumeMounts }}
116
118
{{- toYaml .Values.userDefinedVolumeMounts | nindent 10 }}
117
119
{{- end }}
@@ -163,6 +165,13 @@ spec:
163
165
- name : orbital-config
164
166
configMap :
165
167
name : {{ template "orbital.fullname" . }}-config
168
+ - name : orbital-workspace-config
169
+ configMap :
170
+ {{- if .Values.orbital.workspace.configSuppliedAsConfigMap }}
171
+ name : {{ .Values.orbital.workspace.configMap }}
172
+ {{- else }}
173
+ name : {{ template "orbital.fullname" . }}-workspace-config
174
+ {{- end }}
166
175
- name : orbital-services-config
167
176
configMap :
168
177
name : {{ template "orbital.fullname" . }}-services-config
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ orbital:
60
60
}
61
61
workspace :
62
62
enabled : false
63
- path : /opt/service/config/workspaces.conf
63
+ path : /opt/service/config/workspace/workspaces.conf
64
+ configSuppliedAsConfigMap : false
65
+ configMap : " " # right now only 1 config map is allowed for workspace config
64
66
config : |-
65
67
git {
66
68
# The root directory where all git repositories are cloned to
You can’t perform that action at this time.
0 commit comments