From 2abe39f581b1a3ebd54f7bd9bb9cab27c517acb8 Mon Sep 17 00:00:00 2001 From: JAM <272807+JessieAMorris@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:18:38 -0700 Subject: [PATCH] Add the default command --- charts/philter/templates/philter-api/deployment.yaml | 5 +++++ charts/philter/templates/philter-ui/deployment.yaml | 5 +++++ charts/philter/values.yaml | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/charts/philter/templates/philter-api/deployment.yaml b/charts/philter/templates/philter-api/deployment.yaml index 86b72b2..88080d7 100644 --- a/charts/philter/templates/philter-api/deployment.yaml +++ b/charts/philter/templates/philter-api/deployment.yaml @@ -41,6 +41,11 @@ spec: image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.api.image.pullPolicy }} + {{- with .Values.api.command }} + command: + {{- toYaml . | nindent 12 }} + {{- end }} + args: - "$JAVA_OPTS" {{- with .Values.api.args }} diff --git a/charts/philter/templates/philter-ui/deployment.yaml b/charts/philter/templates/philter-ui/deployment.yaml index 8081d6b..b1ce366 100644 --- a/charts/philter/templates/philter-ui/deployment.yaml +++ b/charts/philter/templates/philter-ui/deployment.yaml @@ -38,6 +38,11 @@ spec: image: "{{ .Values.ui.image.repository }}:{{ .Values.ui.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.ui.image.pullPolicy }} + {{- with .Values.ui.command }} + command: + {{- toYaml . | nindent 12 }} + {{- end }} + args: - "$JAVA_OPTS" {{- with .Values.ui.args }} diff --git a/charts/philter/values.yaml b/charts/philter/values.yaml index 644cd17..121db08 100644 --- a/charts/philter/values.yaml +++ b/charts/philter/values.yaml @@ -151,6 +151,7 @@ api: # runAsNonRoot: true # runAsUser: 1000 + command: ["java", "-jar", "/opt/philter/philter.jar"] args: [] env: [] @@ -235,6 +236,7 @@ ui: # runAsNonRoot: true # runAsUser: 1000 + command: ["java", "-jar", "/opt/philter/philter-ui.jar"] args: [] env: [] @@ -323,8 +325,6 @@ phEye: # runAsNonRoot: true # runAsUser: 1000 - args: [] - env: [] apiEndpointOverride: