diff --git a/README.md b/README.md index 8f3e6e9..bcd10d2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rocketadmin)](https://artifacthub.io/packages/search?repo=rocketadmin) +## UPGRADE NOTICE + +Starting with version 1 default storage changes to pglite. If you need to keep previous behaviour you need to set postgresql.enabled = true + ## Overview 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 ## Configuration -The following table lists the configurable parameters of the RocketAdmin chart and their default values. +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 | Parameter | Description | Default | | ---------------------------------- | ------------------------------------------------------------ | ----------------------------- | diff --git a/charts/rocketadmin/Chart.lock b/charts/rocketadmin/Chart.lock index 7ee7edb..0381baf 100644 --- a/charts/rocketadmin/Chart.lock +++ b/charts/rocketadmin/Chart.lock @@ -2,5 +2,5 @@ dependencies: - name: postgresql repository: oci://registry-1.docker.io/bitnamicharts version: 15.5.20 -digest: sha256:37258931369b9ea3374b455c037d82ad7ea0bdcc649123d2f6f5cdc52dd7491b -generated: "2024-08-08T13:36:10.102618246Z" +digest: sha256:fa28791d6a669ccb1c04be8dd4dce32693ae1699ba318338f5ee8abadf40e0f2 +generated: "2025-10-17T11:14:31.642107706Z" diff --git a/charts/rocketadmin/Chart.yaml b/charts/rocketadmin/Chart.yaml index 9092254..4c452a8 100644 --- a/charts/rocketadmin/Chart.yaml +++ b/charts/rocketadmin/Chart.yaml @@ -3,15 +3,16 @@ name: rocketadmin description: Rocketadmin is a web-based application for creating admin panels for your projects. type: application icon: https://avatars.githubusercontent.com/u/84132223 -version: 0.1.66 +version: 1.0.0 home: https://rocketadmin.com sources: - https://github.com/rocket-admin/rocketadmin -appVersion: "1.0.17" +appVersion: "1.0.18" dependencies: - name: postgresql repository: oci://registry-1.docker.io/bitnamicharts version: "15.5.20" + condition: "postgresql.enabled" maintainers: - name: gugu email: andrii@rocketadmin.com diff --git a/charts/rocketadmin/charts/postgresql-15.5.20.tgz b/charts/rocketadmin/charts/postgresql-15.5.20.tgz new file mode 100644 index 0000000..016fa52 Binary files /dev/null and b/charts/rocketadmin/charts/postgresql-15.5.20.tgz differ diff --git a/charts/rocketadmin/templates/deployment.yaml b/charts/rocketadmin/templates/deployment.yaml index 19bcdfd..b312d08 100644 --- a/charts/rocketadmin/templates/deployment.yaml +++ b/charts/rocketadmin/templates/deployment.yaml @@ -27,6 +27,12 @@ spec: serviceAccountName: {{ include "rocketadmin.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} +{{- if .Values.pglite.enabled }} + volumes: + - name: rocketadmin-data + persistentVolumeClaim: + claimName: rocketadmin-data-pvc +{{- end }} containers: - name: {{ .Chart.Name }} securityContext: @@ -40,6 +46,11 @@ spec: - name: http containerPort: 8080 protocol: TCP +{{- if .Values.pglite.enabled }} + volumeMounts: + - name: rocketadmin-data + mountPath: /app/backend/pglite-storage +{{- end }} livenessProbe: httpGet: path: / @@ -48,6 +59,7 @@ spec: httpGet: path: / port: http + initialDelaySeconds: 30 resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/rocketadmin/templates/pvc.yaml b/charts/rocketadmin/templates/pvc.yaml new file mode 100644 index 0000000..bf36184 --- /dev/null +++ b/charts/rocketadmin/templates/pvc.yaml @@ -0,0 +1,15 @@ +{{- if .Values.pglite.enabled }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: rocketadmin-data-pvc + labels: + {{- include "rocketadmin.labels" . | nindent 4 }} +spec: + accessModes: + - ReadWriteOnce + storageClassName: {{ .Values.pglite.storageClass }} + resources: + requests: + storage: 10Gi +{{- end }} \ No newline at end of file diff --git a/charts/rocketadmin/templates/secret.yaml b/charts/rocketadmin/templates/secret.yaml index 1c8b5a0..ebf6ca4 100644 --- a/charts/rocketadmin/templates/secret.yaml +++ b/charts/rocketadmin/templates/secret.yaml @@ -30,7 +30,12 @@ type: Opaque stringData: {{ ( include "gen.secret" . ) | indent 2}} APP_DOMAIN_ADDRESS: {{ include "app-domain-address" . }} +{{- if .Values.postgresql.enabled}} DATABASE_URL: postgresql://rocketadmin:{{urlquery .Values.auth.password}}@{{ include "rocketadmin.postgresql.fullname" . }}/rocketadmin +{{- end -}} +{{- if .Values.pglite.enabled }} + PGLITE_FOLDER_PATH: /pglite-storage +{{- end}} {{- if .Values.email.enabled }} EMAIL_CONFIG_STRING: "smtp://{{urlquery .Values.email.username}}:{{urlquery .Values.email.password}}@{{.Values.email.host}}:{{.Values.email.port}}" EMAIL_FROM: {{.Values.email.from}} diff --git a/charts/rocketadmin/values.yaml b/charts/rocketadmin/values.yaml index 1cc0d65..eb3afde 100644 --- a/charts/rocketadmin/values.yaml +++ b/charts/rocketadmin/values.yaml @@ -95,10 +95,14 @@ tolerations: [] affinity: {} postgresql: - enabled: true + enabled: false image: repository: bitnamilegacy/postgresql auth: username: rocketadmin existingSecret: rocketadmin-postgresql-secret database: rocketadmin + +pglite: + enabled: true + storageClass: