Skip to content

Commit

Permalink
chore(helm): remove unnecessary model configs and add extrEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
heiruwu committed Aug 29, 2024
1 parent 535fcfe commit 05ae7bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 0 additions & 2 deletions charts/core/templates/model-backend/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ data:
{{- end }}
name: model
version: {{ .Values.modelBackend.dbVersion }}
cloudversion: {{ .Values.modelBackend.dbCloudVersion }}
cloudmigrationtable: cloud_schema_migrations
timezone: Etc/UTC
pool:
idleconnections: {{ .Values.database.maxIdleConns }}
Expand Down
14 changes: 13 additions & 1 deletion charts/core/templates/model-backend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ spec:
- name: config
mountPath: {{ .Values.modelBackend.configPath }}
subPath: config.yaml
env:
{{- if .Values.modelBackend.extraEnv }}
{{- toYaml .Values.modelBackend.extraEnv | nindent 12 }}
{{- end }}
- name: model-backend-init
image: {{ .Values.modelBackend.image.repository }}:{{ .Values.modelBackend.image.tag }}
imagePullPolicy: {{ .Values.modelBackend.image.pullPolicy }}
Expand All @@ -104,6 +108,10 @@ spec:
- name: config
mountPath: {{ .Values.modelBackend.configPath }}
subPath: config.yaml
env:
{{- if .Values.modelBackend.extraEnv }}
{{- toYaml .Values.modelBackend.extraEnv | nindent 12 }}
{{- end }}
- name: wait-for-mgmt-backend
image: curlimages/curl:8.00.1
command: ['sh', '-c']
Expand Down Expand Up @@ -156,6 +164,10 @@ spec:
{{- with .Values.modelBackend.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- if .Values.modelBackend.extraEnv }}
{{- toYaml .Values.modelBackend.extraEnv | nindent 12 }}
{{- end }}
- name: model-backend
image: {{ .Values.modelBackend.image.repository }}:{{ .Values.modelBackend.image.tag }}
imagePullPolicy: {{ .Values.modelBackend.image.pullPolicy }}
Expand Down Expand Up @@ -195,8 +207,8 @@ spec:
{{- with .Values.modelBackend.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.modelBackend.extraEnv }}
env:
{{- if .Values.modelBackend.extraEnv }}
{{- toYaml .Values.modelBackend.extraEnv | nindent 12 }}
{{- end }}
{{- with .Values.modelBackend.sidecarContainers }}
Expand Down
1 change: 0 additions & 1 deletion charts/core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ modelBackend:
configPath: /model-backend/config/config.yaml
# -- The database migration version
dbVersion: 9
dbCloudVersion:
instillCoreHost:
# -- The configuration of Temporal Cloud
temporal:
Expand Down

0 comments on commit 05ae7bb

Please sign in to comment.