Skip to content
Snippets Groups Projects
Commit 1ba72858 authored by avouacr's avatar avouacr
Browse files

use standardInitPath to point to onyxia init

parent ee0c2e48
No related branches found
Tags vscode-1.2.0
No related merge requests found
......@@ -24,7 +24,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.1
version: 1.2.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
......
......@@ -47,7 +47,7 @@ spec:
image: "{{ .Values.service.image.version }}"
{{- end }}
command: ["/bin/sh","-c"]
args: ["/scripts/{{ .Values.init.filename}} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
args: ["{{ .Values.init.standardInitPath}} /usr/bin/code-server --host 0.0.0.0 /home/{{ .Values.environment.user }}/work"]
imagePullPolicy: {{ .Values.service.image.pullPolicy }}
env:
{{- if .Values.init.personalInit }}
......
......@@ -562,19 +562,6 @@
"description": "Init parameters",
"type": "object",
"properties": {
"standardInit": {
"type": "string",
"description": "initialization script",
"default": "",
"x-form": {
"hidden": true,
"value": "{{k8s.initScriptUrl}}"
},
"x-onyxia": {
"hidden": true,
"overwriteDefaultWith": "{{k8s.initScriptUrl}}"
}
},
"personalInit": {
"type": "string",
"description": "initialization script",
......
......@@ -22,8 +22,7 @@ security:
ip: "0.0.0.0/0"
init:
standardInit: "{{k8s.initScriptUrl}}"
filename: "onyxia-init.sh"
standardInitPath: "/opt/onyxia-init.sh"
personalInit: ""
personalInitArgs: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment