Skip to content

Commit

Permalink
Add a way to remove any subpath
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed May 13, 2024
1 parent aade471 commit 10d1903
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
12 changes: 10 additions & 2 deletions chart/templates/deployment-iipsrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
volumeMounts:
- mountPath: /data
name: image-data
subPath: {{ .Release.Name }}
subPath: {{ kindIs "string" .Values.persistence.imageStorageSubPath | ternary .Values.persistence.imageStorageSubPath .Release.Name | quote }}
dnsPolicy: ClusterFirst
initContainers:
- args:
Expand All @@ -72,14 +72,22 @@ spec:
- -c
image: busybox
imagePullPolicy: Always
{{- if .Values.application.secretName }}
envFrom:
- secretRef:
name: {{ .Values.application.secretName }}
{{- if .Values.extraEnvFrom }}
{{- toYaml .Values.extraEnvFrom | nindent 8 }}
{{- end }}
{{- end }}
name: {{ .Chart.Name }}-iipsrv-create-foriiif
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: image-data
subPath: {{ .Release.Name }}
subPath: {{ kindIs "string" .Values.persistence.imageStorageSubPath | ternary .Values.persistence.imageStorageSubPath .Release.Name | quote }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/deployment-imageserver-rev-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
volumeMounts:
- mountPath: /mnt/data
name: image-data
subPath: {{ .Release.Name }}
subPath: {{ kindIs "string" .Values.persistence.imageStorageSubPath | ternary .Values.persistence.imageStorageSubPath .Release.Name | quote }}
- mountPath: /var/tmp
name: lighttpd-tmp
{{- with .Values.nodeSelector }}
Expand Down
6 changes: 2 additions & 4 deletions chart/templates/deployment-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ spec:
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /data
name: image-data
subPath: {{ .Release.Name }}
subPath: {{ kindIs "string" .Values.persistence.imageStorageSubPath | ternary .Values.persistence.imageStorageSubPath .Release.Name | quote }}
dnsPolicy: ClusterFirst
initContainers:
- args:
Expand All @@ -74,7 +72,7 @@ spec:
volumeMounts:
- mountPath: /data
name: image-data
subPath: {{ .Release.Name }}
subPath: {{ kindIs "string" .Values.persistence.imageStorageSubPath | ternary .Values.persistence.imageStorageSubPath .Release.Name | quote }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ affinity: {}

persistence:
imageStoragePVC: iiif-picture-storage
# imageStorageSubPath:

0 comments on commit 10d1903

Please sign in to comment.