Skip to content

Commit

Permalink
add pvClaims
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Oct 11, 2024
1 parent fd52f73 commit d848b39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Charts/ioc-instance/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ spec:
path: {{ .hostPath }}
type: Directory
{{- end }}
{{- range .Values.pvClaims }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .claimName }}
{{- end }}
- name: config-volume
configMap:
name: {{ .Release.Name }}-config
Expand Down Expand Up @@ -124,6 +129,11 @@ spec:
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- end }}
{{- range .Values.pvClaims }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath | default "/" }}
{{- end }}
stdin: true
tty: true
securityContext:
Expand Down
8 changes: 8 additions & 0 deletions Charts/ioc-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ hostMounts: []
# hostPath: /dev/andorusb
# mountPath: /dev/andorusb

# additoonal
pvClaims: []
# e.g.
# - name: nfsv2-tftp
# claimName: nfsv2-tftp
# mountPath: "ioc-group/ioc-name"
# subPath: "ioc-group/ioc-name"

# use the shared PVC for publishing opi files over http (see services/opis)
opisClaim: ""
# use the shared PVC for holding runtime files for each IOC
Expand Down

0 comments on commit d848b39

Please sign in to comment.