Skip to content

Commit

Permalink
refactor deployment configuration to use array syntax for command and…
Browse files Browse the repository at this point in the history
… args in values.yaml
  • Loading branch information
emmanuelmathot committed Jan 7, 2025
1 parent 070fb0c commit 5079a5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 5 additions & 2 deletions deployment/k8s/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.image.command }}
args: {{ .Values.image.args }}
command: [ {{ .Values.image.command }} ]
args: [ {{- range $arg := .Values.image.args }}
{{- $arg | quote }},
{{- end }}
]
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
env:
Expand Down
11 changes: 9 additions & 2 deletions deployment/k8s/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ image:
repository: ghcr.io/developmentseed/titiler
tag: latest
pullPolicy: IfNotPresent
command: ["uvicorn"]
args: ["titiler.application.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "1"]
command: "uvicorn"
args:
- "titiler.application.main:app"
- "--host"
- "0.0.0.0"
- "--port"
- "80"
- "--workers"
- "1"

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit 5079a5f

Please sign in to comment.