Skip to content
Snippets Groups Projects
Verified Commit 8434374f authored by Martin Weise's avatar Martin Weise
Browse files

Added more explainable form of customizing Helm chart UI

parent e02fcf70
Branches
Tags
1 merge request!250Master
...@@ -211,11 +211,25 @@ Helm chart. See their documentation for the remaining overridden values. ...@@ -211,11 +211,25 @@ Helm chart. See their documentation for the remaining overridden values.
### User Interface ### User Interface
To replace the placeholder values in To replace e.g. the default logo with your organization's logo `my_logo.png`, encode it to
the [`dbrepo.config.json`](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/blob/release-v1.4/dbrepo-ui/dbrepo.config.json) base64 `cat my_logo.png | base64` and create a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/)
you need to create a ConfigMap `my-config` and mount the `dbrepo.config.json` into `/app/dbrepo.config.json`: under a handy name `my-config`.
```yaml ```yaml
# my-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: my-config
binaryData:
my_logo.png: |
<output from `cat my_logo.png | base64`>
```
Then mount it into the container:
```yaml
# values.yaml
ui: ui:
extraVolumes: extraVolumes:
- name: config-map - name: config-map
...@@ -223,20 +237,21 @@ ui: ...@@ -223,20 +237,21 @@ ui:
name: my-config name: my-config
extraVolumeMounts: extraVolumeMounts:
- name: config-map - name: config-map
mountPath: /dbrepo.config.json mountPath: /app/my_logo.png
subPath: dbrepo.config.json subPath: my_logo.png
readOnly: true readOnly: true
... ...
``` ```
| Name | Description | Value | | Name | Description | Value |
|------------------------|----------------------------------------|----------------------------| |------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|
| `ui.enabled` | Enables/disabled the deployment. | `enabled` | | `ui.enabled` | Enables/disabled the deployment. | `enabled` |
| `ui.image.registry` | Registry to pull the image | `s210.dl.hpc.tuwien.ac.at` | | `ui.image.registry` | Registry to pull the image | `s210.dl.hpc.tuwien.ac.at` |
| `ui.image.repository` | Repository to pull the image | `dbrepo/ui` | | `ui.image.repository` | Repository to pull the image | `dbrepo/ui` |
| `ui.image.tag` | Tag of the image. | `1.4.1` | | `ui.image.tag` | Tag of the image. | `1.4.1` |
| `ui.image.pullPolicy` | Image pull policy on deployments | `Always` | | `ui.image.pullPolicy` | Image pull policy on deployments | `Always` |
| `ui.replicaCount` | Number of replicas for the deployment. | `2` | | `ui.replicaCount` | Number of replicas for the deployment. | `2` |
| `ui.config` | JSON file containting the configuration of the UI. See [`dbrepo.config.json`](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/blob/release-v1.4/dbrepo-ui/dbrepo.config.json) | `2` |
| `ui.extraVolumes` | List of extra volumes. | `[]` | | `ui.extraVolumes` | List of extra volumes. | `[]` |
| `ui.extraVolumeMounts` | List of extra volume mounts. | `[]` | | `ui.extraVolumeMounts` | List of extra volume mounts. | `[]` |
......
...@@ -4,111 +4,8 @@ apiVersion: v1 ...@@ -4,111 +4,8 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: ui-setup name: ui-setup
namespace: {{ $.Values.namespace }} namespace: {{ .Values.namespace }}
data: data:
dbrepo.config.json: | dbrepo.config.json: |
{ {{ .Values.ui.config | nindent 4 }}
"title": "Database Repository",
"version": "1.4.1",
"ssl": {
"force": false
},
"logo": {
"path": "/logo.svg"
},
"icon": {
"path": "/favicon.ico"
},
"appleTouchIcon": {
"path": "/apple-touch-icon.png"
},
"api": {
"useSsl": false
},
"broker": {
"connection": {
"host": "localhost",
"ports": [
5672
],
"extraInfo": null
}
},
"storage": {
"endpoint": "storage-service",
"port": 9000,
"useSsl": false,
"accessKey": {
"id": "seaweedfsadmin",
"secret": "seaweedfsadmin"
}
},
"upload": {
"endpoint": "localhost",
"port": 1080,
"useSsl": false
},
"database": {
"connection": {
"extraInfo": null
}
},
"keycloak": {
"client": {
"id": "dbrepo-client",
"secret": "MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG"
}
},
"opensearch": {
"username": "admin",
"password": "admin"
},
"pid": {
"default": {
"publisher": "Example University"
}
},
"doi": {
"url": "https://doi.org"
},
"pages": {
"login": {
"links": []
},
"information": {
"links": [
{
"text": "Online Documentation",
"blank": true,
"href": "https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/"
},
{
"text": "Sourcecode Documentation",
"blank": true,
"href": "https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services"
},
{
"text": "Docker Images",
"blank": true,
"href": "https://hub.docker.com/u/dbrepo"
},
{
"text": "Demo Instance (Kubernetes)",
"blank": true,
"href": "https://test.dbrepo.tuwien.ac.at/"
},
{
"text": "Pilot Instance (Docker Compose)",
"blank": true,
"href": "https://dbrepo1.ec.tuwien.ac.at/"
},
{
"text": "Paper",
"blank": true,
"href": "https://doi.org/10.2218/ijdc.v17i1.825"
}
]
}
}
}
{{- end }} {{- end }}
\ No newline at end of file
...@@ -469,6 +469,111 @@ ui: ...@@ -469,6 +469,111 @@ ui:
tag: "1.4.1" tag: "1.4.1"
pullPolicy: Always pullPolicy: Always
replicaCount: 2 replicaCount: 2
config: |
{
"title": "Database Repository",
"version": "1.4.1",
"ssl": {
"force": false
},
"logo": {
"path": "/logo.svg"
},
"icon": {
"path": "/favicon.ico"
},
"appleTouchIcon": {
"path": "/apple-touch-icon.png"
},
"api": {
"useSsl": false
},
"broker": {
"connection": {
"host": "localhost",
"ports": [
5672
],
"extraInfo": null
}
},
"storage": {
"endpoint": "storage-service",
"port": 9000,
"useSsl": false,
"accessKey": {
"id": "seaweedfsadmin",
"secret": "seaweedfsadmin"
}
},
"upload": {
"endpoint": "localhost",
"port": 1080,
"useSsl": false
},
"database": {
"connection": {
"extraInfo": null
}
},
"keycloak": {
"client": {
"id": "dbrepo-client",
"secret": "MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG"
}
},
"opensearch": {
"username": "admin",
"password": "admin"
},
"pid": {
"default": {
"publisher": "Example University"
}
},
"doi": {
"url": "https://doi.org"
},
"pages": {
"login": {
"links": [ ]
},
"information": {
"links": [
{
"text": "Online Documentation",
"blank": true,
"href": "https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/"
},
{
"text": "Sourcecode Documentation",
"blank": true,
"href": "https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services"
},
{
"text": "Docker Images",
"blank": true,
"href": "https://hub.docker.com/u/dbrepo"
},
{
"text": "Demo Instance (Kubernetes)",
"blank": true,
"href": "https://test.dbrepo.tuwien.ac.at/"
},
{
"text": "Pilot Instance (Docker Compose)",
"blank": true,
"href": "https://dbrepo1.ec.tuwien.ac.at/"
},
{
"text": "Paper",
"blank": true,
"href": "https://doi.org/10.2218/ijdc.v17i1.825"
}
]
}
}
}
extraVolumes: [ ] extraVolumes: [ ]
# - name: images-map # - name: images-map
# configMap: # configMap:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment