Skip to content

Commit

Permalink
chore(ckan): add extra volumes to ckan (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyeKlu authored Dec 3, 2024
1 parent 0b22ebd commit bb194dc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
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
4 changes: 3 additions & 1 deletion charts/ckan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ ckan:
pullPolicy: IfNotPresent
pullSecrets: []
repository: teutonet/oci-images/ckan
tag: 1.0.10
tag: 1.0.11
digest: ""
extraEnvVars: []
extraVolumeMounts: []
extraVolumes: []
ingress:
ingressClassName: ""
annotations: {}
Expand Down

0 comments on commit bb194dc

Please sign in to comment.