Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

updated helm chart to work with v2.3.5+

Dominik Schramm19fbc8b7e7ae
diff --git a/charts/kaneo/Chart.yaml b/charts/kaneo/Chart.yaml
index e5fbe8dec..2dff245a8 100644
--- a/charts/kaneo/Chart.yaml
+++ b/charts/kaneo/Chart.yaml
@@ -2,8 +2,10 @@ apiVersion: v2
name: kaneo
description: Kaneo - All you need. Nothing you don't. Open source project management that works for you.
type: application
-version: 0.1.0
-appVersion: "1.0.0"
+# Bumped to 0.2.0 due to breaking auth and probe changes
+version: 0.2.0
+# Bumped to the latest v2 release
+appVersion: "2.3.5"
keywords:
- project-management
- kanban
@@ -27,4 +29,4 @@ annotations:
- Self-hosted: Full control over your data
- Customizable: Make it yours with extensive customization options
- Open Source: MIT licensed, free forever
-kubeVersion: ">=1.19.0-0"
+kubeVersion: ">=1.19.0-0"
\ No newline at end of file
diff --git a/charts/kaneo/templates/NOTES.txt b/charts/kaneo/templates/NOTES.txt
index 45a90c79b..3c9f2c8e6 100644
--- a/charts/kaneo/templates/NOTES.txt
+++ b/charts/kaneo/templates/NOTES.txt
@@ -32,18 +32,22 @@ Alternatively, you can expose the services using an Ingress by setting .Values.i
{{- end }}
NOTES:
-1. Kaneo is configured with SQLite database for persistence.
- {{- if .Values.postgresql.persistence.enabled }}
- A PersistentVolumeClaim is used to store the SQLite database file.
- {{- else }}
- WARNING: Persistence is disabled. Your data will be lost when the pod is terminated.
+1. Kaneo is configured with PostgreSQL database for persistence.
+ {{- if .Values.postgresql.enabled }}
+ {{- if .Values.postgresql.persistence.enabled }}
+ A PersistentVolumeClaim is used to store the PostgreSQL database files.
+ {{- else }}
+ WARNING: Persistence is disabled. Your database data will be lost when the PostgreSQL pod is terminated.
To enable persistence, set .Values.postgresql.persistence.enabled=true
+ {{- end }}
+ {{- else }}
+ Using an external database connection.
{{- end }}
2. Important environment variables:
- API:
- - JWT_ACCESS: Secret key for generating JWT tokens (currently set to: {{ .Values.api.env.jwtAccess }})
- - DB_PATH: Path to the SQLite database file (set to: "{{ .Values.postgresql.persistence.mountPath }}/{{ .Values.postgresql.persistence.dbFilename }}")
+ - AUTH_SECRET: Secret key for Better Auth (currently set to: {{ .Values.api.env.authSecret }})
+ - DATABASE_URL: Connection string for the database
- Web:
- KANEO_API_URL: URL of the API service (set to: "{{- if .Values.web.env.apiUrl -}}
@@ -60,4 +64,4 @@ NOTES:
3. IMPORTANT: This chart uses a combined pod approach where both the API and Web containers
run in the same pod. This allows the web frontend to connect directly to the API via
- localhost, simplifying the deployment and eliminating cross-origin issues.
+ localhost, simplifying the deployment and eliminating cross-origin issues.
\ No newline at end of file
diff --git a/charts/kaneo/templates/deployment.yaml b/charts/kaneo/templates/deployment.yaml
index c50de35cd..b88228fee 100644
--- a/charts/kaneo/templates/deployment.yaml
+++ b/charts/kaneo/templates/deployment.yaml
@@ -34,15 +34,37 @@ spec:
containerPort: {{ .Values.api.service.targetPort }}
protocol: TCP
env:
- - name: JWT_ACCESS
+ # Updated to support Better Auth
+ - name: BETTER_AUTH_SECRET
{{- if .Values.api.env.existingSecret.enabled }}
valueFrom:
secretKeyRef:
name: {{ .Values.api.env.existingSecret.name }}
key: {{ .Values.api.env.existingSecret.key }}
{{- else }}
- value: "{{ .Values.api.env.jwtAccess }}"
+ value: "{{ .Values.api.env.authSecret }}"
{{- end }}
+ - name: AUTH_SECRET
+ {{- if .Values.api.env.existingSecret.enabled }}
+ valueFrom:
+ secretKeyRef:
+ name: {{ .Values.api.env.existingSecret.name }}
+ key: {{ .Values.api.env.existingSecret.key }}
+ {{- else }}
+ value: "{{ .Values.api.env.authSecret }}"
+ {{- end }}
+ - name: BETTER_AUTH_URL
+ value: "{{- if .Values.web.env.apiUrl -}}
+ {{- if hasSuffix "/" .Values.web.env.apiUrl -}}
+ {{- .Values.web.env.apiUrl -}}api
+ {{- else -}}
+ {{- .Values.web.env.apiUrl -}}/api
+ {{- end -}}
+ {{- else -}}
+ http://localhost:{{ .Values.api.service.targetPort }}
+ {{- end -}}"
+ - name: CORS_ORIGINS
+ value: "{{ .Values.web.env.apiUrl | default "*" }}"
- name: DATABASE_URL
{{- if .Values.api.env.database.external.enabled }}
{{- if .Values.api.env.database.external.existingSecret.enabled }}
@@ -111,4 +133,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
- {{- end }}
+ {{- end }}
\ No newline at end of file
diff --git a/charts/kaneo/values.yaml b/charts/kaneo/values.yaml
index 9d7e3e5ef..286d0d035 100644
--- a/charts/kaneo/values.yaml
+++ b/charts/kaneo/values.yaml
@@ -80,11 +80,12 @@ api:
# Environment variables for the API
env:
- jwtAccess: change_me
+ # Must be at least 32 characters long for Better Auth
+ authSecret: change_me_to_at_least_32_characters_long_string
existingSecret:
enabled: false
name: ""
- key: jwt-access
+ key: auth-secret
disableRegistration: false
# Database configuration
database:
@@ -111,13 +112,13 @@ api:
passwordKey: postgres_uri
livenessProbe:
httpGet:
- path: /me
+ path: /health
port: api
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
- path: /me
+ path: /health
port: api
initialDelaySeconds: 5
periodSeconds: 10
@@ -186,4 +187,4 @@ ingress:
pathType: ImplementationSpecific
service: api
port: 1337
- tls: []
+ tls: []
\ No newline at end of file