diff --git a/charts/doccano/Chart.yaml b/charts/doccano/Chart.yaml index e3fe740..39fe5b2 100644 --- a/charts/doccano/Chart.yaml +++ b/charts/doccano/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: doccano appVersion: 1.2.2 -version: 1.3.5 +version: 1.3.6 description: A Helm chart for doccano, Open source text annotation tool for machine learning practitioner. home: https://doccano.herokuapp.com/ icon: https://raw.githubusercontent.com/doccano/doccano/master/docs/images/logo/doccano.png diff --git a/charts/doccano/templates/deployment.yaml b/charts/doccano/templates/deployment.yaml index b54b3e4..eb77203 100644 --- a/charts/doccano/templates/deployment.yaml +++ b/charts/doccano/templates/deployment.yaml @@ -46,9 +46,20 @@ spec: volumeMounts: - mountPath: {{ .Values.persistence.mountPath }} name: {{ .Values.persistence.volumeName }} - {{- if .Values.image.deployRegistry }} - imagePullSecrets: - - name: "{{ .Values.image.name }}-{{ .Values.image.imagePullSecrets }}" + {{- if .Values.dump.enabled }} + - name: {{ .Chart.Name }}-dump + image: {{ .Values.dump.image }} + imagePullPolicy: Always + {{- with .Values.dump.env }} + env: +{{ toYaml . | indent 8 }} + {{- end }} + volumeMounts: + - mountPath: {{ .Values.dump.mountPath }} + name: {{ .Values.persistence.volumeName }} + readOnly: true + - mountPath: /nfs + name: nfs-dump {{- end }} initContainers: - args: @@ -65,3 +76,12 @@ spec: - name: {{ .Values.persistence.volumeName }} persistentVolumeClaim: claimName: "{{ .Release.Name }}-{{ .Values.persistence.volumeName }}" + {{- if .Values.dump.enabled }} + - hostPath: + path: {{ .Values.dump.nfsPath }} + name: nfs-dump + {{- end }} + {{- if .Values.image.deployRegistry }} + imagePullSecrets: + - name: "{{ .Values.image.name }}-{{ .Values.image.imagePullSecrets }}" + {{- end }} diff --git a/charts/doccano/values.yaml b/charts/doccano/values.yaml index 5c284ff..8529b7e 100644 --- a/charts/doccano/values.yaml +++ b/charts/doccano/values.yaml @@ -39,3 +39,9 @@ persistence: replicas: "1" volumeName: "data" mountPath: /data + + annotations: + helm.sh/resource-policy: keep + +dump: + enabled: false