Skip to content

Commit 802c931

Browse files
authored
Merge pull request #89 from rocket-admin/pglite
v1
2 parents 13b9764 + 8a766f8 commit 802c931

8 files changed

Lines changed: 47 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rocketadmin)](https://artifacthub.io/packages/search?repo=rocketadmin)
44

5+
## UPGRADE NOTICE
6+
7+
Starting with version 1 default storage changes to pglite. If you need to keep previous behaviour you need to set postgresql.enabled = true
8+
59
## Overview
610

711
This Helm chart is used to deploy RocketAdmin, a comprehensive administration tool for managing databases, on a Kubernetes cluster. This chart configures and manages the necessary Kubernetes resources such as Deployments, Services, and ConfigMaps.
@@ -34,7 +38,7 @@ The command removes all the Kubernetes components associated with the chart and
3438

3539
## Configuration
3640

37-
The following table lists the configurable parameters of the RocketAdmin chart and their default values.
41+
The following table lists the configurable parameters of the RocketAdmin chart and their default values. If you want to keep existing behaviour - set postgresql.enabled to true
3842

3943
| Parameter | Description | Default |
4044
| ---------------------------------- | ------------------------------------------------------------ | ----------------------------- |

charts/rocketadmin/Chart.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ dependencies:
22
- name: postgresql
33
repository: oci://registry-1.docker.io/bitnamicharts
44
version: 15.5.20
5-
digest: sha256:37258931369b9ea3374b455c037d82ad7ea0bdcc649123d2f6f5cdc52dd7491b
6-
generated: "2024-08-08T13:36:10.102618246Z"
5+
digest: sha256:fa28791d6a669ccb1c04be8dd4dce32693ae1699ba318338f5ee8abadf40e0f2
6+
generated: "2025-10-17T11:14:31.642107706Z"

charts/rocketadmin/Chart.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ name: rocketadmin
33
description: Rocketadmin is a web-based application for creating admin panels for your projects.
44
type: application
55
icon: https://avatars.githubusercontent.com/u/84132223
6-
version: 0.1.66
6+
version: 1.0.0
77
home: https://rocketadmin.com
88
sources:
99
- https://github.com/rocket-admin/rocketadmin
10-
appVersion: "1.0.17"
10+
appVersion: "1.0.18"
1111
dependencies:
1212
- name: postgresql
1313
repository: oci://registry-1.docker.io/bitnamicharts
1414
version: "15.5.20"
15+
condition: "postgresql.enabled"
1516
maintainers:
1617
- name: gugu
1718
email: andrii@rocketadmin.com
74.2 KB
Binary file not shown.

charts/rocketadmin/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ spec:
2727
serviceAccountName: {{ include "rocketadmin.serviceAccountName" . }}
2828
securityContext:
2929
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30+
{{- if .Values.pglite.enabled }}
31+
volumes:
32+
- name: rocketadmin-data
33+
persistentVolumeClaim:
34+
claimName: rocketadmin-data-pvc
35+
{{- end }}
3036
containers:
3137
- name: {{ .Chart.Name }}
3238
securityContext:
@@ -40,6 +46,11 @@ spec:
4046
- name: http
4147
containerPort: 8080
4248
protocol: TCP
49+
{{- if .Values.pglite.enabled }}
50+
volumeMounts:
51+
- name: rocketadmin-data
52+
mountPath: /app/backend/pglite-storage
53+
{{- end }}
4354
livenessProbe:
4455
httpGet:
4556
path: /
@@ -48,6 +59,7 @@ spec:
4859
httpGet:
4960
path: /
5061
port: http
62+
initialDelaySeconds: 30
5163
resources:
5264
{{- toYaml .Values.resources | nindent 12 }}
5365
{{- with .Values.nodeSelector }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if .Values.pglite.enabled }}
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: rocketadmin-data-pvc
6+
labels:
7+
{{- include "rocketadmin.labels" . | nindent 4 }}
8+
spec:
9+
accessModes:
10+
- ReadWriteOnce
11+
storageClassName: {{ .Values.pglite.storageClass }}
12+
resources:
13+
requests:
14+
storage: 10Gi
15+
{{- end }}

charts/rocketadmin/templates/secret.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ type: Opaque
3030
stringData:
3131
{{ ( include "gen.secret" . ) | indent 2}}
3232
APP_DOMAIN_ADDRESS: {{ include "app-domain-address" . }}
33+
{{- if .Values.postgresql.enabled}}
3334
DATABASE_URL: postgresql://rocketadmin:{{urlquery .Values.auth.password}}@{{ include "rocketadmin.postgresql.fullname" . }}/rocketadmin
35+
{{- end -}}
36+
{{- if .Values.pglite.enabled }}
37+
PGLITE_FOLDER_PATH: /pglite-storage
38+
{{- end}}
3439
{{- if .Values.email.enabled }}
3540
EMAIL_CONFIG_STRING: "smtp://{{urlquery .Values.email.username}}:{{urlquery .Values.email.password}}@{{.Values.email.host}}:{{.Values.email.port}}"
3641
EMAIL_FROM: {{.Values.email.from}}

charts/rocketadmin/values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,14 @@ tolerations: []
9595
affinity: {}
9696

9797
postgresql:
98-
enabled: true
98+
enabled: false
9999
image:
100100
repository: bitnamilegacy/postgresql
101101
auth:
102102
username: rocketadmin
103103
existingSecret: rocketadmin-postgresql-secret
104104
database: rocketadmin
105+
106+
pglite:
107+
enabled: true
108+
storageClass:

0 commit comments

Comments
 (0)