-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor image build check #56
Conversation
This seems to work, tested on staging. Would be good to have a second pair of eyes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: with this change, would it be possible for a user to launch a private image without having access to it?
@@ -89,8 +96,6 @@ jupyterhub: | |||
extraEnv: | |||
DEBUG: 1 | |||
JUPYTERHUB_SPAWNER_CLASS: spawners.RenkuKubeSpawner | |||
## timeout for waiting on an image build | |||
# GITLAB_IMAGE_BUILD_TIMEOUT: 600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to move it instead, no?
@leafty I guess you might be right since we don't have user-level image registry secrets. I was more thinking that we may want to offer a selection of base images to launch from, hence the added query option. |
I see. I guess it might be good to rethink the PR then. Let's see how we can have public image selection together with repo-based images. |
@leafty I am happy to remove that part for now as it doesn't really address the point of this PR in any case. We may want to look at the JupyterHub spawner |
@@ -48,6 +48,14 @@ spec: | |||
value: {{ .Values.jupyterhub.hub.services.notebooks.oauth_client_id }} | |||
- name: GITLAB_REGISTRY_SECRET | |||
value: {{ template "renku.fullname" . }}-registry | |||
- name: GITLAB_URL | |||
{{ if .Values.gitlab_url }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leafty can you please review again? |
{{ if eq .Values.debug true }} | ||
- name: FLASK_DEBUG | ||
value: "1" | ||
{{ end }} | ||
- name: JUPYTERHUB_API_TOKEN | ||
value: {{ .Values.jupyterhub_api_token }} | ||
value: {{ .Values.jupyterhub.hub.services.notebooks.api_token }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -1,12 +1,12 @@ | |||
# Build as renku/singleuser | |||
# Run with the DockerSpawner in JupyterHub | |||
|
|||
ARG JUPYTERHUB_VERSION=0.9 | |||
ARG JUPYTERHUB_VERSION=0.9.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they made 0.9.1
disappear, will this one last?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the logic regarding image selection out of the spawner and into the notebook service. The spawner should just launch whichever image is given to it.