diff --git a/charts/ckan/templates/ckan/deployment.yaml b/charts/ckan/templates/ckan/deployment.yaml index c88655c4c5..342c58c799 100644 --- a/charts/ckan/templates/ckan/deployment.yaml +++ b/charts/ckan/templates/ckan/deployment.yaml @@ -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: @@ -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" $ }} diff --git a/charts/ckan/values.schema.json b/charts/ckan/values.schema.json index 995e7ff4a8..1cce7f5ff9 100644 --- a/charts/ckan/values.schema.json +++ b/charts/ckan/values.schema.json @@ -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." diff --git a/charts/ckan/values.yaml b/charts/ckan/values.yaml index 73e0544a61..8dc5a528dd 100644 --- a/charts/ckan/values.yaml +++ b/charts/ckan/values.yaml @@ -58,6 +58,8 @@ ckan: tag: 1.0.10 digest: "" extraEnvVars: [] + extraVolumeMounts: [] + extraVolumes: [] ingress: ingressClassName: "" annotations: {}