/
ui-client-configmap.yaml
45 lines (45 loc) · 2.74 KB
/
ui-client-configmap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "renku.fullname" . }}-privacy-and-terms
labels:
app: ui
chart: {{ template "renku.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
sample_privacy_statement: |
# Privacy statement
The content of this page is only a template.
## Information
If you are reading this message, the Privacy page content has not been updated for this RenkuLab deployment.
The following content is intended to be read by a RenkuLab admin.
## Configure the Privacy Page
You should customize the privacy statement by cloning the sample ConfigMap ``*-sample-privacy`` and adjust the
content. Any markdown formatted text works. Feel free to change the ConfigMap key and to pick any name,
be sure to properly configure the values ``ui.client.privacy.page`` before upgrading your RenkuLab deployment.
If the mapping is enabled but no text is provided (empty content, wrong ``privacy.page`` values, missing
ConfigMap, etc.), the links in the navigation bars will be hidden and users manually accessing the privacy page
will get a warning.
Consider changing the cookie banner content as well when the privacy page is not available.
## Apply the changes
If you edit the ConfigMap content and you don't upgrade the deployment from helm, keep in mind that the
ui pod needs to be manually re-deployed in order to apply the changes to the privacy page.
sample_terms: |
# Terms of Use
The content of this page is only a template.
## Information
If you are reading this message, the Terms of Use page content has not been updated for this RenkuLab deployment.
The following content is intended to be read by a RenkuLab admin.
## Configure the Terms of Use
You should customize the terms of use by cloning the sample ConfigMap ``*-sample-privacy`` and adjust the
content. Any markdown formatted text works. Feel free to change the ConfigMap key and to pick any name,
be sure to properly configure the values ``ui.client.privacy.page`` before upgrading your RenkuLab deployment.
If the mapping is enabled but no text is provided (empty content, wrong ``privacy.page`` values, missing
ConfigMap, etc.), the links in the navigation bars will be hidden and users manually accessing the terms page
will get a warning.
## Apply the changes
If you edit the ConfigMap content and you don't upgrade the deployment from helm, keep in mind that the
ui pod needs to be manually re-deployed in order to apply the changes to the terms page.
privacy_statement: {{ .Values.ui.client.privacy.page.privacyPolicyContent | default ("") | quote }}
terms: {{ .Values.ui.client.privacy.page.termsContent | default ("") | quote }}