Skip to content

Commit

Permalink
Improve configuration options for data-dashboard-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed May 29, 2024
1 parent 40a756f commit e71b3d0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/data-dashboard-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "0.1.0"
name: data-dashboard-backend
description: API for data in the data dashboard
version: 0.1.6
version: 0.1.8
sources: ["https://github.com/thehyve/radar-data-dashboard-backend"]
deprecated: false
type: application
Expand Down
15 changes: 10 additions & 5 deletions charts/data-dashboard-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# data-dashboard-backend

![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)


![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

API for data in the data dashboard

Expand All @@ -26,13 +28,16 @@ API for data in the data dashboard
* Kubectl 1.22+
* Helm 3.1.0+



## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| replicaCount | int | `1` | Number of replicas to deploy |
| image.repository | string | `"ghcr.io/thehyve/radar-data-dashboard-backend"` | docker image repository |
| image.repository | string | `"radarbase/radar-data-dashboard-backend"` | docker image repository |
| image.pullPolicy | string | `"Always"` | image pull policy |
| image.tag | string | `"latest"` | |
| imagePullSecrets | list | `[]` | Docker registry secret names as an array |
| nameOverride | string | `""` | String to partially override fullname template with a string (will prepend the release name) |
| fullnameOverride | string | `""` | String to fully override fullname template with a string |
Expand Down Expand Up @@ -60,9 +65,9 @@ API for data in the data dashboard
| managementPortal.url | string | `"http://management-portal:8080/managementportal"` | ManagementPortal URL |
| managementPortal.clientId | string | `"radar_data_dashboard_backend"` | ManagementPortal OAuth 2.0 client ID, having grant type client_credentials |
| managementPortal.clientSecret | string | `"secret"` | ManagementPortal OAuth 2.0 client secret |
| path | string | `"/api"` | |
| path | string | `"/api"` | Base path to use in application |
| jdbc.driver | string | `"org.postgresql.Driver"` | JDBC Driver to connect to the database. |
| jdbc.url | string | `"jdbc:postgresql://postgresql:5432/data-dashboard"` | JDBC Connection url of the database. |
| jdbc.user | string | `"radarbase"` | Username of the database |
| jdbc.password | string | `"password"` | Password of the user |
| jdbc.user | string | `"postgres"` | Username of the database |
| jdbc.password | string | `"secret"` | Password of the user |
| jdbc.dialect | string | `"org.hibernate.dialect.PostgreSQLDialect"` | Hibernate dialect to use for JDBC Connection |
2 changes: 1 addition & 1 deletion charts/data-dashboard-backend/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data:
url: {{ .Values.managementPortal.url }}
clientId: {{ .Values.managementPortal.clientId }}
clientSecret: {{ .Values.managementPortal.clientSecret }}
jwtResourceName: res_data_dashboard_backend
jwtResourceName: {{ .Values.jwtResourceName }}
database:
url: {{ .Values.jdbc.url }}
user: {{ .Values.jdbc.user }}
Expand Down
4 changes: 2 additions & 2 deletions charts/data-dashboard-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/health
path: {{ .Values.path }}/health
port: http
httpHeaders:
- name: Accept
value: application/json
readinessProbe:
httpGet:
path: /api/health
path: {{ .Values.path }}/health
port: http
httpHeaders:
- name: Accept
Expand Down
10 changes: 6 additions & 4 deletions charts/data-dashboard-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ replicaCount: 1

image:
# -- docker image repository
repository: ghcr.io/thehyve/radar-data-dashboard-backend
repository: radarbase/radar-data-dashboard-backend
# -- image pull policy
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: latest

# -- Docker registry secret names as an array
imagePullSecrets: []
Expand Down Expand Up @@ -99,7 +101,7 @@ managementPortal:
# -- ManagementPortal OAuth 2.0 client secret
clientSecret: secret

# Base path to use in application
# -- Base path to use in application
path: /api

jdbc:
Expand All @@ -108,8 +110,8 @@ jdbc:
# -- JDBC Connection url of the database.
url: jdbc:postgresql://postgresql:5432/data-dashboard
# -- Username of the database
user: radarbase
user: postgres
# -- Password of the user
password: password
password: secret
# -- Hibernate dialect to use for JDBC Connection
dialect: org.hibernate.dialect.PostgreSQLDialect

0 comments on commit e71b3d0

Please sign in to comment.