Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ckan): add extra volumes to ckan #1263

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading