Skip to content

Commit

Permalink
Merge pull request #16 from curie-data-factory/doccano
Browse files Browse the repository at this point in the history
add dump capabilities to PVC
  • Loading branch information
armandleopold authored Apr 28, 2021
2 parents 2f14443 + aa71ebf commit 3ad60b1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/doccano/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 23 additions & 3 deletions charts/doccano/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
6 changes: 6 additions & 0 deletions charts/doccano/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ persistence:
replicas: "1"
volumeName: "data"
mountPath: /data

annotations:
helm.sh/resource-policy: keep

dump:
enabled: false

0 comments on commit 3ad60b1

Please sign in to comment.