Skip to content

Commit

Permalink
fix: Allow specifying external dburl in Helm (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
bstinsonmhk committed Apr 5, 2024
1 parent d033520 commit d7847fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/planka/Chart.yaml
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.21
version: 0.1.22

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 5 additions & 0 deletions charts/planka/templates/deployment.yaml
Expand Up @@ -58,11 +58,16 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
{{- if not .Values.postgresql.enabled }}
- name: DATABASE_URL
value: {{ required "If the included postgresql deployment is disabled you need to define a Database URL in 'dburl'" .Values.dburl }}
{{- else }}
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: planka-postgresql-svcbind-custom-user
key: uri
{{- end }}
- name: BASE_URL
{{- if .Values.baseUrl }}
value: {{ .Values.baseUrl }}
Expand Down
4 changes: 3 additions & 1 deletion charts/planka/values.yaml
Expand Up @@ -105,12 +105,14 @@ postgresql:
serviceBindings:
enabled: true

## Set this if you disable the built-in postgresql deployment
dburl:

## PVC-based data storage configuration
persistence:
enabled: false
# existingClaim: netbox-data
# storageClass: "-"

accessMode: ReadWriteOnce
size: 10Gi

Expand Down

0 comments on commit d7847fe

Please sign in to comment.