diff --git a/charts/sourcegraph/CHANGELOG.md b/charts/sourcegraph/CHANGELOG.md index 963396bb..330ce233 100644 --- a/charts/sourcegraph/CHANGELOG.md +++ b/charts/sourcegraph/CHANGELOG.md @@ -8,6 +8,7 @@ Use `**BREAKING**:` to denote a breaking change ## Unreleased +- Port names for all the DBs are renamed to `postgres` to create consistency across the deployments [#275](https://github.com/sourcegraph/deploy-sourcegraph-helm/pull/275) ## 5.0.0 diff --git a/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.Service.yaml b/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.Service.yaml index 8ad06da0..3b443e04 100644 --- a/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.Service.yaml +++ b/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.Service.yaml @@ -18,9 +18,9 @@ metadata: name: codeinsights-db spec: ports: - - name: codeinsights-db + - name: postgres port: 5432 - targetPort: codeinsights-db + targetPort: postgres selector: {{- include "sourcegraph.selectorLabels" . | nindent 4 }} app: codeinsights-db diff --git a/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.StatefulSet.yaml b/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.StatefulSet.yaml index 54c28844..37e8a245 100644 --- a/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.StatefulSet.yaml +++ b/charts/sourcegraph/templates/codeinsights-db/codeinsights-db.StatefulSet.yaml @@ -80,7 +80,7 @@ spec: terminationMessagePolicy: FallbackToLogsOnError ports: - containerPort: 5432 - name: codeinsights-db + name: postgres {{- if not .Values.sourcegraph.localDevMode }} resources: {{- toYaml .Values.codeInsightsDB.resources | nindent 10 }} diff --git a/charts/sourcegraph/templates/codeintel-db/codeintel-db.Service.yaml b/charts/sourcegraph/templates/codeintel-db/codeintel-db.Service.yaml index fbce429a..3db5cc73 100644 --- a/charts/sourcegraph/templates/codeintel-db/codeintel-db.Service.yaml +++ b/charts/sourcegraph/templates/codeintel-db/codeintel-db.Service.yaml @@ -18,9 +18,9 @@ metadata: name: codeintel-db spec: ports: - - name: pgsql + - name: postgres port: 5432 - targetPort: pgsql + targetPort: postgres selector: {{- include "sourcegraph.selectorLabels" . | nindent 4 }} app: codeintel-db diff --git a/charts/sourcegraph/templates/codeintel-db/codeintel-db.StatefulSet.yaml b/charts/sourcegraph/templates/codeintel-db/codeintel-db.StatefulSet.yaml index 540e23fc..068bde1f 100644 --- a/charts/sourcegraph/templates/codeintel-db/codeintel-db.StatefulSet.yaml +++ b/charts/sourcegraph/templates/codeintel-db/codeintel-db.StatefulSet.yaml @@ -91,7 +91,7 @@ spec: periodSeconds: 10 ports: - containerPort: 5432 - name: pgsql + name: postgres {{- if not .Values.sourcegraph.localDevMode }} resources: {{- toYaml .Values.codeIntelDB.resources | nindent 10 }} diff --git a/charts/sourcegraph/templates/pgsql/pgsql.Service.yaml b/charts/sourcegraph/templates/pgsql/pgsql.Service.yaml index 139b7a08..c4c40015 100644 --- a/charts/sourcegraph/templates/pgsql/pgsql.Service.yaml +++ b/charts/sourcegraph/templates/pgsql/pgsql.Service.yaml @@ -18,9 +18,9 @@ metadata: name: pgsql spec: ports: - - name: pgsql + - name: postgres port: 5432 - targetPort: pgsql + targetPort: postgres selector: {{- include "sourcegraph.selectorLabels" . | nindent 4 }} app: pgsql diff --git a/charts/sourcegraph/templates/pgsql/pgsql.StatefulSet.yaml b/charts/sourcegraph/templates/pgsql/pgsql.StatefulSet.yaml index 48a1f0f1..e0e00827 100644 --- a/charts/sourcegraph/templates/pgsql/pgsql.StatefulSet.yaml +++ b/charts/sourcegraph/templates/pgsql/pgsql.StatefulSet.yaml @@ -91,7 +91,7 @@ spec: {{- end }} ports: - containerPort: 5432 - name: pgsql + name: postgres {{- if not .Values.sourcegraph.localDevMode }} resources: {{- toYaml .Values.pgsql.resources | nindent 10 }}