diff --git a/charts/core/templates/model-backend/configmap.yaml b/charts/core/templates/model-backend/configmap.yaml index e1d6f151..902d1a25 100644 --- a/charts/core/templates/model-backend/configmap.yaml +++ b/charts/core/templates/model-backend/configmap.yaml @@ -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 }} diff --git a/charts/core/templates/model-backend/deployment.yaml b/charts/core/templates/model-backend/deployment.yaml index 10af3872..c7bbf00d 100644 --- a/charts/core/templates/model-backend/deployment.yaml +++ b/charts/core/templates/model-backend/deployment.yaml @@ -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 }} @@ -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'] @@ -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 }} @@ -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 }} diff --git a/charts/core/values.yaml b/charts/core/values.yaml index 69e4d8a2..341adadb 100644 --- a/charts/core/values.yaml +++ b/charts/core/values.yaml @@ -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: