Skip to content

Commit

Permalink
feat: add support for hostPath volume in indexer
Browse files Browse the repository at this point in the history
- Adds `hostPath` configuration in `values.yaml` to allow
  using a hostPath volume for the index worker.
- Updates `deployment.yaml` to conditionally use `hostPath` if specified,
  otherwise fallback to `PersistentVolumeClaim`.

Closes #164
  • Loading branch information
vchendrix committed Feb 18, 2025
1 parent 1101a5b commit ad96abf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,16 @@ spec:
configMap:
name: {{ .Release.Name }}-indexer-configfiles
defaultMode: 0644
- name: indexer-metacat-pv
- name: indexer-metacat-pv
{{- if and .Values.persistence.hostPath .Values.persistence.hostPath.path }}
hostPath:
path: {{ tpl .Values.persistence.hostPath.path . }}
type: {{ .Values.persistence.hostPath.type }}
{{- else }}
persistentVolumeClaim:
claimName: {{ include "idxworker.shared.claimName" . }}
readOnly: true
{{- end }}
- name: {{ .Release.Name }}-temp-tripledb-volume
ephemeral:
volumeClaimTemplate:
Expand Down
9 changes: 9 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ persistence:
##
subPath: ""

## @param persistence.hostPath Use a hostPath volume for the index worker.
## This will override the claimName and use the mountPath settings.
hostPath:
## @param persistence.hostPath.path The path on the host to use for the hostPath volume
path: ""
## @param persistence.hostPath.type The type of hostPath volume to use
type: Directory


## @section IndexWorker properties
##
idxworker:
Expand Down

0 comments on commit ad96abf

Please sign in to comment.