Skip to content

Commit

Permalink
Added volume mount to shiny proxy if a volumeK8s is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredeen committed Aug 7, 2024
1 parent 56a3729 commit 8af0f0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/shinyproxy/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,16 @@ data:
- mountPath: /etc/shiny-server/shiny-server.conf
subPath: shiny-server.conf
name: {{ .Release.Name }}-shiny-configmap
{{ if .Values.apps.volumeK8s }}
- op: add
path: /spec/volumes/-
value:
- name: data-volume
emptyDir: {}
- op: add
path: /spec/containers/0/volumeMounts/-
value:
- mountPath: /home/shiny/data
name: data-volume
{{ end }}
title: Serve Shiny Proxy
3 changes: 3 additions & 0 deletions apps/shinyproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ appconfig:
global:
domain: localhost

apps:
volumeK8s:

service:
name: shinyproxy-svc

Expand Down

0 comments on commit 8af0f0d

Please sign in to comment.