-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add maintenace page #900
Conversation
6bc45d2
to
bdbf359
Compare
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.
Thanks for getting this together so quickly. It looks very good. It looks like there are a few bits of configuration from the development of this issue still left in the codebase, and they should be set to the "productive" state.
helm-chart/renku-ui/values.yaml
Outdated
@@ -62,6 +62,9 @@ templatesRepository: | |||
url: https://github.com/SwissDataScienceCenter/renku-project-template | |||
ref: 0.1.9 | |||
|
|||
# any string here will enable the maintenance page and be added on it as an info |
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.
Maybe clarify: Any string here, other than 'false', will ...
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.
good point! I added also an extra line about true
run-telepresence.sh
Outdated
@@ -75,7 +75,8 @@ tee > ./public/config.json << EOF | |||
"SENTRY_URL": "${SENTRY_URL}", | |||
"SENTRY_NAMESPACE": "${SENTRY_NAMESPACE}", | |||
"RENKU_TEMPLATES_URL": "https://github.com/SwissDataScienceCenter/renku-project-template", | |||
"RENKU_TEMPLATES_REF": "master" | |||
"RENKU_TEMPLATES_REF": "master", | |||
"MAINTENANCE": "true" |
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.
This is probably just for debugging this PR and should be removed now.
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.
oh right, that accidentally slipped in!
@@ -44,6 +44,10 @@ spec: | |||
value: {{ required "templateRepository.url must be specified, e.g., https://github.com/repos/SwissDataScienceCenter/renku-project-template" .Values.templatesRepository.url | quote }} | |||
- name: RENKU_TEMPLATES_REF | |||
value: {{ required "templateRepository.ref must be specified, e.g., master" .Values.templatesRepository.ref | quote }} | |||
{{- if .Values.maintenance }} | |||
- name: MAINTENANCE | |||
value: {{ .Values.maintenance | default (printf "true") | quote }} |
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.
Shouldn't the default be false
?
4b0100c
to
c1b8fac
Compare
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.
👍
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.
Thanks so much for this!
Provide a maintenance page to be used during renkulab maintenances when important components are not available (e.g. Keycloack, GitLab, ...). This prevents any API call.
The maintenance page is piloted by
ui.maintenance
in the values files or theMAINTENANCE
environment variable in the pod (the latter is created from the former).By default
ui.maintenance: false
. It can be set totrue
or to any other string that will be used as a message to display on the maintenance page.TEST
Preview available here: https://lorenzotest.dev.renku.ch/
Feel free to modify the values while testing (the easiest is modifying the
MAINTENANCE
UI pod env variable from rancher).This is the maintenance page with the standard message:
fix #894