Skip to content

Commit

Permalink
Add the default command
Browse files Browse the repository at this point in the history
  • Loading branch information
JessieAMorris committed Dec 9, 2024
1 parent 2a1ec27 commit 2abe39f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions charts/philter/templates/philter-api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/philter/templates/philter-ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/philter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ api:
# runAsNonRoot: true
# runAsUser: 1000

command: ["java", "-jar", "/opt/philter/philter.jar"]
args: []

env: []
Expand Down Expand Up @@ -235,6 +236,7 @@ ui:
# runAsNonRoot: true
# runAsUser: 1000

command: ["java", "-jar", "/opt/philter/philter-ui.jar"]
args: []

env: []
Expand Down Expand Up @@ -323,8 +325,6 @@ phEye:
# runAsNonRoot: true
# runAsUser: 1000

args: []

env: []

apiEndpointOverride:
Expand Down

0 comments on commit 2abe39f

Please sign in to comment.