From 2b76649b649ec86503be33c034281166d1370fa2 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 12 Aug 2021 15:52:30 +0000 Subject: [PATCH] [db-sync] Remove VERSION env var logging is not a good enough reason to restart this service --- chart/templates/db-sync-deployment.yaml | 2 -- components/ee/db-sync/src/main.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/chart/templates/db-sync-deployment.yaml b/chart/templates/db-sync-deployment.yaml index d1dcbdd43d6616..ff70953fafdd2b 100644 --- a/chart/templates/db-sync-deployment.yaml +++ b/chart/templates/db-sync-deployment.yaml @@ -74,8 +74,6 @@ spec: securityContext: privileged: false {{ include "gitpod.container.defaultEnv" $this | indent 8 }} - - name: VERSION - value: "${{ .Values.version }}" - name: db-sync-sessions image: {{ template "gitpod.comp.imageFull" $this }} command: [ "node", "--max-old-space-size=2048", "lib/main.js" ] diff --git a/components/ee/db-sync/src/main.ts b/components/ee/db-sync/src/main.ts index d94f4c417cd1ce..ab22231bea0d3e 100644 --- a/components/ee/db-sync/src/main.ts +++ b/components/ee/db-sync/src/main.ts @@ -11,7 +11,7 @@ import { log } from '@gitpod/gitpod-protocol/lib/util/logging'; import { ICommand } from "./commands"; import { Container } from "inversify"; import { productionContainerModule } from "./container-module"; -log.enableJSONLogging('db-sync', process.env.VERSION); +log.enableJSONLogging('db-sync', undefined); const parser = new ArgumentParser({ version: "0.1.5",