mirror of https://github.com/coder/code-server.git
Compare commits
4 Commits
8143912f3a
...
9d592f1199
Author | SHA1 | Date |
---|---|---|
Benjamin Ummenhofer | 9d592f1199 | |
Theodore Herzfeld | 4af06de4c3 | |
Benjamin Ummenhofer | a5e3bf3ef1 | |
Benjamin Ummenhofer | 175c68295f |
|
@ -35,8 +35,9 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
|
{{- if or (and .Values.volumePermissions.enabled .Values.persistence.enabled) .Values.extraInitContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
|
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
|
||||||
- name: init-chmod-data
|
- name: init-chmod-data
|
||||||
image: busybox:latest
|
image: busybox:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
@ -50,6 +51,7 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /home/coder
|
mountPath: /home/coder
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.extraInitContainers }}
|
{{- if .Values.extraInitContainers }}
|
||||||
{{ tpl .Values.extraInitContainers . | indent 6}}
|
{{ tpl .Values.extraInitContainers . | indent 6}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -56,6 +56,12 @@
|
||||||
if (el) {
|
if (el) {
|
||||||
el.value = location.href
|
el.value = location.href
|
||||||
}
|
}
|
||||||
|
// get password from the url
|
||||||
|
let url = new URL(window.location.href)
|
||||||
|
if( url.searchParams.get("session_password") ){
|
||||||
|
document.getElementsByName("password")[0].value = url.searchParams.get("session_password")
|
||||||
|
document.getElementsByClassName("submit")[0].click()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue