Skip to content

Commit

Permalink
chore(ckan): add extra volumes to ckan
Browse files Browse the repository at this point in the history
  • Loading branch information
SyeKlu committed Dec 3, 2024
1 parent 0b22ebd commit eb3c8b2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/ckan/templates/ckan/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
name: my-configmap
- name: api-tokens-volume
emptyDir: {}
{{- with .Values.ckan.extraVolumes }}
{{- tpl (toYaml .) $ | nindent 8 -}}
{{- end }}
securityContext:
{{- toYaml .Values.ckan.podSecurityContext | default dict | nindent 8 }}
containers:
Expand Down Expand Up @@ -200,6 +203,9 @@ spec:
- name: "ckan"
mountPath: /var/lib/ckan
readOnly: false
{{- with .Values.ckan.extraVolumeMounts }}
{{- tpl (toYaml .) $ | nindent 12 -}}
{{- end }}
ports:
- name: http
containerPort: {{ include "ckan.ckan.service.port" $ }}
Expand Down
12 changes: 12 additions & 0 deletions charts/ckan/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@
"default": [],
"items": {}
},
"extraVolumeMounts": {
"type": ["array", "string"],
"description": "Array with extra volume mounts variables to add to CKAN",
"default": [],
"items": {}
},
"extraVolumes": {
"type": ["array", "string"],
"description": "Array with extra volumes variables to add to CKAN",
"default": [],
"items": {}
},
"siteId":{
"type": "string",
"description": "The search index is linked to the value of the ckan.site_id, so if you have more than one CKAN instance using the same solr_url, they will each have a separate search index as long as their ckan.site_id values are different."
Expand Down
2 changes: 2 additions & 0 deletions charts/ckan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ ckan:
tag: 1.0.10
digest: ""
extraEnvVars: []
extraVolumeMounts: []
extraVolumes: []
ingress:
ingressClassName: ""
annotations: {}
Expand Down

0 comments on commit eb3c8b2

Please sign in to comment.