From 4423ad2bba0add09a90970aff2796674f7cad67c Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Wed, 5 Jul 2023 15:04:55 +0200 Subject: [PATCH] force to use shiny-server as command for the container, can be diseabled --- rshiny/Chart.yaml | 2 +- rshiny/templates/deployment.yaml | 3 +++ rshiny/values.yaml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rshiny/Chart.yaml b/rshiny/Chart.yaml index 638e96a..2a2d1d2 100644 --- a/rshiny/Chart.yaml +++ b/rshiny/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.4.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/rshiny/templates/deployment.yaml b/rshiny/templates/deployment.yaml index 06dc656..3f14f69 100644 --- a/rshiny/templates/deployment.yaml +++ b/rshiny/templates/deployment.yaml @@ -29,6 +29,9 @@ spec: containers: - name: rshiny-pod image: {{ .Values.imageFullNameAndTag }} + {{- if .Values.shiny.enforceCommand }} + command: ["shiny-server"] + {{- end }} securityContext: runAsGroup: 999 runAsUser: 999 diff --git a/rshiny/values.yaml b/rshiny/values.yaml index 749e3da..c42f704 100644 --- a/rshiny/values.yaml +++ b/rshiny/values.yaml @@ -23,7 +23,6 @@ resources: ingress: - enabled: true className: "" annotations: nginx.ingress.kubernetes.io/affinity: cookie @@ -33,3 +32,6 @@ ingress: registry: private: false + +shinyServer: + enforceCommand: true \ No newline at end of file -- GitLab