Skip to content

Commit

Permalink
Merge pull request #23 from Chia-Network/hostpath-support
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Aug 22, 2023
2 parents 6a5553b + d22d450 commit d538bc4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/generic/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: generic
description: A generic helm chart that handles a bunch of common application deploy cases
type: application
version: 1.1.0
version: 1.2.0
13 changes: 13 additions & 0 deletions charts/generic/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range $.Values.hostVolumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- range .Values.sidecars }}
{{- $sidecarName := .name -}}
{{- range .sharedEmptyDirs }}
Expand Down Expand Up @@ -132,6 +136,10 @@ spec:
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- range $.Values.hostVolumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- range .sharedEmptyDirs }}
- name: {{ $sidecarName }}-{{ .name }}
mountPath: {{ .mountPath }}
Expand All @@ -149,6 +157,11 @@ spec:
persistentVolumeClaim:
claimName: {{ $fullName }}-{{ .name }}
{{- end }}
{{- range .Values.hostVolumes }}
- name: {{ .name }}
hostPath:
path: {{ .hostPath }}
{{- end }}
{{- range .Values.sidecars }}
{{- $sidecarName := .name -}}
{{- range .sharedEmptyDirs }}
Expand Down
5 changes: 5 additions & 0 deletions charts/generic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ volumes: []
# storageClassName: longhorn
# volumeMode: Filesystem|Block

hostVolumes: []
# - name: config
# hostPath: /path/on/host/config
# mountPath: /config

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit d538bc4

Please sign in to comment.