Skip to content

Commit

Permalink
Add defaults to supprt SQLite DB
Browse files Browse the repository at this point in the history
  • Loading branch information
BWibo committed Mar 2, 2024
1 parent 340e582 commit aeb25cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/sddi-ckan/charts/datapusher-plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ A Helm chart for CKAN Datapusher-plus.
| autoscaling.targetMemoryUtilizationPercentage | string | `nil` | [HorizontalPodAutoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/). |
| chunkSize | string | `"16384"` | Size of chunks of the data that is being downloaded in bytes |
| component | string | `"datapusher"` | Role of CKAN Datapusher in this chart |
| databaseUri | string | `"sqlite:////tmp/job_store.db"` | SQLAlchemy Database URL for job store, see [Datapusher config](https://github.com/ckan/datapusher#datapusher-configuration) for more. Note: If `db.enabled` this setting is ignored. |
| datapusherRewriteResources | bool | `true` | Enable or disable (boolean) whether Datapusher should rewrite resources uploaded to CKAN's filestore, since Datapusher takes the CKAN Site URL value for generating the resource URL. Default: False |
| datapusherRewriteUrl | string | `"http://ckan:5000/"` | Sets the rewrite URL that Datapusher will rewrite resources that are uploaded to CKAN's filestore. Default: http://ckan:5000 |
| datapusherSslVerify | bool | `false` | Enable or disable (boolean) verification of SSL when trying to get resources. Default: True |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ Create the name of the service account to use
SQL alchemy url
*/}}
{{- define "datapusher-plus.sqlalchemy.url" -}}
{{- if .Values.global.datapusher.db.enabled | default .Values.db.enabled -}}
postgresql://
{{- .Values.global.datapusher.db.auth.username | default .Values.db.auth.username -}}:
{{- .Values.global.datapusher.db.auth.password | default .Values.db.auth.password -}}@
{{- .Values.global.datapusher.db.host | default .Values.db.host -}}:
{{- .Values.global.datapusher.db.port | default .Values.db.port -}}/
{{- .Values.global.datapusher.db.dbname | default .Values.db.dbname -}}
{{- else -}}
{{ .Values.databaseUri }}
{{- end }}
{{- end }}

{{/*
Expand Down
1 change: 1 addition & 0 deletions charts/sddi-ckan/charts/datapusher-plus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ datapusherRewriteUrl: http://ckan:5000/
# -- SQLAlchemy Database URL for job store, see
# [Datapusher config](https://github.com/ckan/datapusher#datapusher-configuration) for more.
# Note: If `db.enabled` this setting is ignored.
databaseUri: 'sqlite:////tmp/job_store.db'

datastore:
# -- Datapusher plus write engine URL host
Expand Down

0 comments on commit aeb25cf

Please sign in to comment.