From 4e823eceb73dd8a3eccc88e98eca6ba0e02cf5aa Mon Sep 17 00:00:00 2001 From: Marc <7050295+marcleblanc2@users.noreply.github.com> Date: Wed, 26 Mar 2025 21:54:00 -0600 Subject: [PATCH] Chore: Fix deployment types in telemetry (#4454) ### Description Linear issue [REL-812: Update deployment types](https://linear.app/sourcegraph/issue/REL-812/update-deployment-types) Instances with deployment type "Kubernetes" are too vague to be useful in telemetry. Setting this now, so that we can start identifying these usefully in Telemetry as customers upgrade their legacy Kustomize instances >= 6.2.0 > NOTE: ### Checklist - [ ] [CHANGELOG.md](https://github.com/sourcegraph/sourcegraph/blob/main/CHANGELOG.md) updated - [ ] [K8s Upgrade notes updated](https://github.com/sourcegraph/sourcegraph/blob/main/doc/admin/updates/kubernetes.md) - [x] Sister [deploy-sourcegraph-k8s](https://github.com/sourcegraph/deploy-sourcegraph-docker) change: - [ ] Sister [deploy-sourcegraph-docker](https://github.com/sourcegraph/deploy-sourcegraph-docker) change: - [ ] All images have a valid tag and SHA256 sum - [x] I acknowledge that [deploy-sourcegraph-k8s](https://github.com/sourcegraph/deploy-sourcegraph-k8s) is now the preferred Kubernetes deployment repository ### Test plan Test in Looker (cherry picked from commit ef0b0c807e078d8eb3e9165f6661e0a19daad68a) --- base/frontend/sourcegraph-frontend.Deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/frontend/sourcegraph-frontend.Deployment.yaml b/base/frontend/sourcegraph-frontend.Deployment.yaml index 38e75a6fbcf9..8aa4e9033bea 100644 --- a/base/frontend/sourcegraph-frontend.Deployment.yaml +++ b/base/frontend/sourcegraph-frontend.Deployment.yaml @@ -104,6 +104,8 @@ spec: fieldPath: status.hostIP - name: OTEL_EXPORTER_OTLP_ENDPOINT value: http://$(OTEL_AGENT_HOST):4317 + - name: DEPLOY_TYPE + value: "legacy-kustomize" terminationMessagePolicy: FallbackToLogsOnError livenessProbe: httpGet: