Skip to content

Commit

Permalink
Make tusd selectively installable pending merge of: galaxyproject/gal…
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang authored and afgane committed Dec 3, 2021
1 parent 3968cf2 commit eb54cbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galaxy/templates/configmap-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ data:
add_header X-Content-Type-Options nosniff;
}
{{ if .Values.tusd.enabled }}
location {{ template "galaxy.add_trailing_slash" .Values.ingress.path }}api/upload/resumable_upload {
# Disable request and response buffering
proxy_request_buffering off;
Expand All @@ -82,6 +83,7 @@ data:
client_max_body_size 0;
proxy_pass http://{{ template "galaxy.fullname" . }}-tusd:1080/files;
}
{{ end }}
# end server
}
# end http
Expand Down
2 changes: 2 additions & 0 deletions galaxy/templates/deployment-tusd.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.tusd.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -91,3 +92,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions galaxy/templates/service-tusd.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.tusd.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -14,3 +15,4 @@ spec:
selector:
app.kubernetes.io/component: galaxy-tusd-handler
{{- include "galaxy.selectorLabels" . | nindent 4 }}
{{- end }}
1 change: 1 addition & 0 deletions galaxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ nginx:
ephemeral-storage: 100Gi

tusd:
enabled: false
replicaCount: 1
annotations: {}
podAnnotations: {}
Expand Down

0 comments on commit eb54cbc

Please sign in to comment.