From fb43fe80e336359fed96fcbed8f57dfafb9abae1 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 16 Feb 2021 17:18:32 -0700 Subject: [PATCH 1/3] insights: set POSTGRES_PASSWORD Signed-off-by: Stephen Gutekanst --- base/codeinsights-db/codeinsights-db.Deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/codeinsights-db/codeinsights-db.Deployment.yaml b/base/codeinsights-db/codeinsights-db.Deployment.yaml index 7dc9321964d1..d539544194ba 100644 --- a/base/codeinsights-db/codeinsights-db.Deployment.yaml +++ b/base/codeinsights-db/codeinsights-db.Deployment.yaml @@ -27,6 +27,8 @@ spec: containers: - name: timescaledb image: index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:f985af2fef860cc48be40ded864df025b8794b02b86e66cbc6c55bfe3c418831 + env: + - POSTGRES_PASSWORD=password # Accessible by Sourcegraph applications on the network only, so password auth is not used. terminationMessagePolicy: FallbackToLogsOnError readinessProbe: exec: From b236e122f422a18debbc26fff03bf8fe70d70822 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 16 Feb 2021 17:27:46 -0700 Subject: [PATCH 2/3] use YAML map Signed-off-by: Stephen Gutekanst --- base/codeinsights-db/codeinsights-db.Deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/codeinsights-db/codeinsights-db.Deployment.yaml b/base/codeinsights-db/codeinsights-db.Deployment.yaml index d539544194ba..24b6521b8745 100644 --- a/base/codeinsights-db/codeinsights-db.Deployment.yaml +++ b/base/codeinsights-db/codeinsights-db.Deployment.yaml @@ -28,7 +28,7 @@ spec: - name: timescaledb image: index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:f985af2fef860cc48be40ded864df025b8794b02b86e66cbc6c55bfe3c418831 env: - - POSTGRES_PASSWORD=password # Accessible by Sourcegraph applications on the network only, so password auth is not used. + - POSTGRES_PASSWORD: password # Accessible by Sourcegraph applications on the network only, so password auth is not used. terminationMessagePolicy: FallbackToLogsOnError readinessProbe: exec: From 38cb97227dec0142d677ab28c9d1e390758dbd96 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 16 Feb 2021 17:32:18 -0700 Subject: [PATCH 3/3] I hate YAML Signed-off-by: Stephen Gutekanst --- base/codeinsights-db/codeinsights-db.Deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/codeinsights-db/codeinsights-db.Deployment.yaml b/base/codeinsights-db/codeinsights-db.Deployment.yaml index 24b6521b8745..d3ceabbbc471 100644 --- a/base/codeinsights-db/codeinsights-db.Deployment.yaml +++ b/base/codeinsights-db/codeinsights-db.Deployment.yaml @@ -28,7 +28,8 @@ spec: - name: timescaledb image: index.docker.io/sourcegraph/codeinsights-db:insiders@sha256:f985af2fef860cc48be40ded864df025b8794b02b86e66cbc6c55bfe3c418831 env: - - POSTGRES_PASSWORD: password # Accessible by Sourcegraph applications on the network only, so password auth is not used. + - name: POSTGRES_PASSWORD # Accessible by Sourcegraph applications on the network only, so password auth is not used. + value: password terminationMessagePolicy: FallbackToLogsOnError readinessProbe: exec: