File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ type: application
2222# This is the chart version. This version number should be incremented each time you make changes
2323# to the chart and its templates, including the app version.
2424# Versions are expected to follow Semantic Versioning (https://semver.org/)
25- version : 2.3 .23
25+ version : 2.4 .23
2626dependencies :
2727 - name : library-chart
2828 version : 1.7.14
Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ spec:
170170 image : " {{ .Values.service.image.version }}"
171171 {{- end }}
172172 command : ["/bin/sh","-c"]
173+ {{- if .Values.git.asCodeServerRoot }}
174+ args : ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(base name "$(ls -d /home/onyxia/work/*/ | head -n 1)")]
175+ {{- else }}
173176 args : ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
177+ {{- end }}
174178 imagePullPolicy : {{ .Values.service.image.pullPolicy }}
175179 env :
176180 {{- if .Values.init.regionInit }}
Original file line number Diff line number Diff line change 571571 "path" : " enabled" ,
572572 "isPathRelative" : true
573573 }
574+ },
575+ "asCodeServerRoot" : {
576+ "title" : " Open the service in the clone folder" ,
577+ "type" : " boolean" ,
578+ "default" : false ,
579+ "hidden" : {
580+ "value" : false ,
581+ "path" : " enabled" ,
582+ "isPathRelative" : true
583+ }
574584 }
575585 }
576586 },
Original file line number Diff line number Diff line change 6969 email : " "
7070 cache : " "
7171 branch : " "
72+ asCodeServerRoot : false
7273
7374repository :
7475 configMapName : " "
You can’t perform that action at this time.
0 commit comments