Skip to content

Commit

Permalink
Feature/fix thumbor (#18)
Browse files Browse the repository at this point in the history
* release 1.0.9

* enable persistent storage

* add pvc
  • Loading branch information
Kurt108 authored Nov 11, 2020
1 parent 5f07afa commit 89c4d96
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/thumbor/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: thumbor
icon: https://camo.githubusercontent.com/8add159463b5ef31481d1e0cc9fb590cd662fe62/68747470733a2f2f73332e65752d776573742d322e616d617a6f6e6177732e636f6d2f6d696e696d616c2d636f6d706163742f696d616765732f6d632d7468756d626f722e706e67
version: 1.0.9
version: 1.0.10
appVersion: "6.7.5"
description: A chart containing Thumbor
home: http://thumbor.org/
Expand Down
2 changes: 1 addition & 1 deletion charts/thumbor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=======
A chart containing Thumbor

Current chart version is `1.0.9`
Current chart version is `1.0.10`

## Based on

Expand Down
12 changes: 9 additions & 3 deletions charts/thumbor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ spec:
release: {{ .Release.Name }}
spec:
volumes:
- name: storage
- name: {{ template "thumbor.fullname" . }}-storage
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "dwcthumbor2backend.fullname" .) }}-storage
{{- else }}
emptyDir: {}
{{ end }}
- name: {{ template "thumbor.fullname" . }}-config
configMap:
name: {{ template "thumbor.fullname" . }}-config
Expand All @@ -45,12 +50,13 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
- name: storage
mountPath: /app/storage
- name: {{ template "thumbor.fullname" . }}-storage
mountPath: /data/storage
readOnly: false
- name: {{ template "thumbor.fullname" . }}-config
mountPath: "/app/thumbor.conf"
subPath: "thumbor.conf"
resources:
{{ toYaml .Values.resources | indent 12 }}


28 changes: 28 additions & 0 deletions charts/thumbor/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "thumbor.fullname" . }}-storage
{{- with .Values.persistence.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
labels:
app: {{ template "thumbor.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 89c4d96

Please sign in to comment.