From 2c7d39be75710cf863a769ebe86af3f683787459 Mon Sep 17 00:00:00 2001 From: JAM <272807+JessieAMorris@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:34:01 -0700 Subject: [PATCH] Changeup the args & command to work better --- charts/philter/Chart.yaml | 2 +- .../templates/philter-api/deployment.yaml | 5 ++--- .../templates/philter-ui/deployment.yaml | 5 ++--- charts/philter/values.yaml | 21 +++++++++++++++---- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/charts/philter/Chart.yaml b/charts/philter/Chart.yaml index 9ec3728..5d855c7 100644 --- a/charts/philter/Chart.yaml +++ b/charts/philter/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.1.14 +version: 0.1.15 # 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/charts/philter/templates/philter-api/deployment.yaml b/charts/philter/templates/philter-api/deployment.yaml index 88080d7..5ee502f 100644 --- a/charts/philter/templates/philter-api/deployment.yaml +++ b/charts/philter/templates/philter-api/deployment.yaml @@ -46,11 +46,10 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.api.args }} args: - - "$JAVA_OPTS" - {{- with .Values.api.args }} {{- toYaml . | nindent 12 }} - {{- end }} + {{- end }} {{- with .Values.api.env }} env: diff --git a/charts/philter/templates/philter-ui/deployment.yaml b/charts/philter/templates/philter-ui/deployment.yaml index b1ce366..0b5431a 100644 --- a/charts/philter/templates/philter-ui/deployment.yaml +++ b/charts/philter/templates/philter-ui/deployment.yaml @@ -43,11 +43,10 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.ui.args }} args: - - "$JAVA_OPTS" - {{- with .Values.ui.args }} {{- toYaml . | nindent 12 }} - {{- end }} + {{- end }} env: - name: PHILTER_ENDPOINT diff --git a/charts/philter/values.yaml b/charts/philter/values.yaml index 121db08..60a1fad 100644 --- a/charts/philter/values.yaml +++ b/charts/philter/values.yaml @@ -151,8 +151,15 @@ api: # runAsNonRoot: true # runAsUser: 1000 - command: ["java", "-jar", "/opt/philter/philter.jar"] - args: [] + command: + - sh + - -c + + args: + - java + - $JAVA_OPTS + - -jar + - philter.jar env: [] @@ -236,8 +243,14 @@ ui: # runAsNonRoot: true # runAsUser: 1000 - command: ["java", "-jar", "/opt/philter/philter-ui.jar"] - args: [] + command: + - sh + - -c + + args: + - java + - $JAVA_OPTS + - -jar env: []