Compare commits

...

4 Commits

Author SHA1 Message Date
Benjamin Ummenhofer 9d592f1199
Merge a5e3bf3ef1 into 4af06de4c3 2024-11-22 22:39:00 +00:00
Theodore Herzfeld 4af06de4c3
Fix extraInitContainers conditional (#7085) 2024-11-22 22:38:56 +00:00
Benjamin Ummenhofer a5e3bf3ef1
Merge branch 'coder:main' into url_passwd 2024-03-30 06:49:02 +01:00
Benjamin Ummenhofer 175c68295f
get password from the url 2023-03-24 15:05:36 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -35,8 +35,9 @@ spec:
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}
{{- end }}
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
{{- if or (and .Values.volumePermissions.enabled .Values.persistence.enabled) .Values.extraInitContainers }}
initContainers:
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
- name: init-chmod-data
image: busybox:latest
imagePullPolicy: IfNotPresent
@ -50,6 +51,7 @@ spec:
volumeMounts:
- name: data
mountPath: /home/coder
{{- end }}
{{- if .Values.extraInitContainers }}
{{ tpl .Values.extraInitContainers . | indent 6}}
{{- end }}

View File

@ -56,6 +56,12 @@
if (el) {
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>
</body>
</html>