Skip to content

Commit 0bda1b1

Browse files
committed
[vscode-*] Add a new option to open the service directly in the cloned folder
1 parent 9db9a47 commit 0bda1b1

File tree

32 files changed

+128
-8
lines changed

32 files changed

+128
-8
lines changed

charts/vscode-pyspark/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type: application
2424
# This is the chart version. This version number should be incremented each time you make changes
2525
# to the chart and its templates, including the app version.
2626
# Versions are expected to follow Semantic Versioning (https://semver.org/)
27-
version: 2.3.22
27+
version: 2.4.22
2828
dependencies:
2929
- name: library-chart
3030
version: 1.7.14

charts/vscode-pyspark/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ spec:
218218
image: "{{ .Values.service.image.version }}"
219219
{{- end }}
220220
command: ["/bin/sh","-c"]
221+
{{- if .Values.git.asCodeServerRoot }}
222+
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work/$(basename $GIT_REPOSITORY)"]
223+
{{- else }}
221224
args: ["{{ .Values.init.standardInitPath }} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
225+
{{- end }}
222226
imagePullPolicy: {{ .Values.service.image.pullPolicy }}
223227
env:
224228
- name: KUBERNETES_POD_NAME

charts/vscode-pyspark/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,16 @@
566566
"path": "enabled",
567567
"isPathRelative": true
568568
}
569+
},
570+
"asCodeServerRoot": {
571+
"title": "Open the service in the clone folder",
572+
"type": "boolean",
573+
"default": false,
574+
"hidden": {
575+
"value": false,
576+
"path": "enabled",
577+
"isPathRelative": true
578+
}
569579
}
570580
}
571581
},

charts/vscode-pyspark/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ git:
9898
token: ""
9999
repository: ""
100100
branch: ""
101+
asCodeServerRoot: false
101102

102103
proxy:
103104
enabled: false

charts/vscode-python-gpu/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111
- https://github.com/InseeFrLab/images-datascience
1212
- https://github.com/InseeFrLab/helm-charts-interactive-services
1313
type: application
14-
version: 2.3.23
14+
version: 2.4.23
1515
dependencies:
1616
- name: library-chart
1717
version: 1.7.14

charts/vscode-python-gpu/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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/$(basename $GIT_REPOSITORY)"]
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 }}

charts/vscode-python-gpu/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,16 @@
585585
"path": "enabled",
586586
"isPathRelative": true
587587
}
588+
},
589+
"asCodeServerRoot": {
590+
"title": "Open the service in the clone folder",
591+
"type": "boolean",
592+
"default": false,
593+
"hidden": {
594+
"value": false,
595+
"path": "enabled",
596+
"isPathRelative": true
597+
}
588598
}
589599
}
590600
},

charts/vscode-python-gpu/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ git:
5050
email: ''
5151
cache: ''
5252
branch: ''
53+
asCodeServerRoot: false
5354
repository:
5455
configMapName: ''
5556
pipRepository: ''

charts/vscode-python/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2626
dependencies:
2727
- name: library-chart
2828
version: 1.7.14

charts/vscode-python/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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/$(basename $GIT_REPOSITORY)"]
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 }}

0 commit comments

Comments
 (0)