diff --git a/base/sourcegraph/blobstore/blobstore.Deployment.yaml b/base/sourcegraph/blobstore/blobstore.Deployment.yaml index d1bcb50f..ee3d9c5a 100644 --- a/base/sourcegraph/blobstore/blobstore.Deployment.yaml +++ b/base/sourcegraph/blobstore/blobstore.Deployment.yaml @@ -26,6 +26,9 @@ spec: spec: containers: - name: blobstore + env: + - name: DEPLOY_TYPE + value: kustomize image: index.docker.io/sourcegraph/blobstore:8.1.2687@sha256:7407a048bdfbd6e635874963b9f075f9e514d5b10ddd26cda76597a0bcd59ab2 livenessProbe: httpGet: diff --git a/base/sourcegraph/frontend/sourcegraph-frontend.Deployment.yaml b/base/sourcegraph/frontend/sourcegraph-frontend.Deployment.yaml index 73ab7852..4dfc4197 100644 --- a/base/sourcegraph/frontend/sourcegraph-frontend.Deployment.yaml +++ b/base/sourcegraph/frontend/sourcegraph-frontend.Deployment.yaml @@ -29,6 +29,9 @@ spec: spec: initContainers: - name: migrator + env: + - name: DEPLOY_TYPE + value: kustomize image: index.docker.io/sourcegraph/migrator:8.1.2687@sha256:c5bf0f81f3b07f7769f694525bef0a2d547a554f99113115a33b0925a16ef5ea args: ["up"] resources: @@ -58,6 +61,8 @@ spec: name: sourcegraph-upload # OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable env: + - name: DEPLOY_TYPE + value: kustomize - name: OTEL_AGENT_HOST valueFrom: fieldRef: diff --git a/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml b/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml index b806b1e5..54d3abc1 100644 --- a/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml +++ b/base/sourcegraph/gitserver/gitserver.StatefulSet.yaml @@ -31,6 +31,8 @@ spec: - configMapRef: name: sourcegraph-upload env: + - name: DEPLOY_TYPE + value: kustomize # OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable - name: OTEL_AGENT_HOST valueFrom: diff --git a/base/sourcegraph/indexed-search/indexed-search.StatefulSet.yaml b/base/sourcegraph/indexed-search/indexed-search.StatefulSet.yaml index d1c4bb5b..f507f789 100644 --- a/base/sourcegraph/indexed-search/indexed-search.StatefulSet.yaml +++ b/base/sourcegraph/indexed-search/indexed-search.StatefulSet.yaml @@ -24,6 +24,8 @@ spec: containers: - name: zoekt-webserver env: + - name: DEPLOY_TYPE + value: kustomize # OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable - name: OTEL_AGENT_HOST valueFrom: @@ -63,6 +65,8 @@ spec: name: data - name: zoekt-indexserver env: + - name: DEPLOY_TYPE + value: kustomize # OTEL_AGENT_HOST must be defined before OTEL_EXPORTER_OTLP_ENDPOINT to substitute the node IP on which the DaemonSet pod instance runs in the latter variable - name: OTEL_AGENT_HOST valueFrom: diff --git a/base/sourcegraph/precise-code-intel/worker.Deployment.yaml b/base/sourcegraph/precise-code-intel/worker.Deployment.yaml index 158b0cfa..cad04807 100644 --- a/base/sourcegraph/precise-code-intel/worker.Deployment.yaml +++ b/base/sourcegraph/precise-code-intel/worker.Deployment.yaml @@ -32,6 +32,8 @@ spec: - configMapRef: name: sourcegraph-upload env: + - name: DEPLOY_TYPE + value: kustomize - name: PRECISE_CODE_INTEL_UPLOAD_BACKEND value: blobstore - name: PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT diff --git a/base/sourcegraph/searcher/searcher.StatefulSet.yaml b/base/sourcegraph/searcher/searcher.StatefulSet.yaml index 9d8f4133..be28349f 100644 --- a/base/sourcegraph/searcher/searcher.StatefulSet.yaml +++ b/base/sourcegraph/searcher/searcher.StatefulSet.yaml @@ -34,6 +34,8 @@ spec: - configMapRef: name: sourcegraph-upload env: + - name: DEPLOY_TYPE + value: kustomize - name: SEARCHER_CACHE_SIZE_MB value: "25000" - name: POD_NAME diff --git a/base/sourcegraph/syntactic-code-intel/worker.Deployment.yaml b/base/sourcegraph/syntactic-code-intel/worker.Deployment.yaml index ad636670..1270af6e 100644 --- a/base/sourcegraph/syntactic-code-intel/worker.Deployment.yaml +++ b/base/sourcegraph/syntactic-code-intel/worker.Deployment.yaml @@ -32,6 +32,8 @@ spec: - configMapRef: name: sourcegraph-upload env: + - name: DEPLOY_TYPE + value: kustomize - name: PRECISE_CODE_INTEL_UPLOAD_BACKEND value: blobstore - name: PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT diff --git a/base/sourcegraph/syntect-server/syntect-server.Deployment.yaml b/base/sourcegraph/syntect-server/syntect-server.Deployment.yaml index 1bb17241..51d1b0a1 100644 --- a/base/sourcegraph/syntect-server/syntect-server.Deployment.yaml +++ b/base/sourcegraph/syntect-server/syntect-server.Deployment.yaml @@ -28,6 +28,9 @@ spec: spec: containers: - name: syntect-server + env: + - name: DEPLOY_TYPE + value: kustomize securityContext: allowPrivilegeEscalation: false runAsGroup: 101 diff --git a/base/sourcegraph/worker/worker.Deployment.yaml b/base/sourcegraph/worker/worker.Deployment.yaml index 569317fd..4b2c791e 100644 --- a/base/sourcegraph/worker/worker.Deployment.yaml +++ b/base/sourcegraph/worker/worker.Deployment.yaml @@ -36,6 +36,8 @@ spec: - configMapRef: name: sourcegraph-upload env: + - name: DEPLOY_TYPE + value: kustomize - name: PRECISE_CODE_INTEL_UPLOAD_BACKEND value: blobstore - name: PRECISE_CODE_INTEL_UPLOAD_AWS_ENDPOINT diff --git a/components/executors/dind/executor.Deployment.yaml b/components/executors/dind/executor.Deployment.yaml index 56a33c73..a6d78ca1 100644 --- a/components/executors/dind/executor.Deployment.yaml +++ b/components/executors/dind/executor.Deployment.yaml @@ -47,6 +47,8 @@ spec: periodSeconds: 5 terminationMessagePolicy: FallbackToLogsOnError env: + - name: DEPLOY_TYPE + value: kustomize - name: EXECUTOR_FRONTEND_PASSWORD valueFrom: secretKeyRef: diff --git a/components/executors/k8s/executor.Deployment.yaml b/components/executors/k8s/executor.Deployment.yaml index 92b45674..3cabe164 100644 --- a/components/executors/k8s/executor.Deployment.yaml +++ b/components/executors/k8s/executor.Deployment.yaml @@ -48,6 +48,8 @@ spec: periodSeconds: 5 terminationMessagePolicy: FallbackToLogsOnError env: + - name: DEPLOY_TYPE + value: kustomize - name: EXECUTOR_FRONTEND_PASSWORD valueFrom: secretKeyRef: diff --git a/components/utils/migrator/resources/migrator.Job.yaml b/components/utils/migrator/resources/migrator.Job.yaml index c1c1c544..1f94130d 100644 --- a/components/utils/migrator/resources/migrator.Job.yaml +++ b/components/utils/migrator/resources/migrator.Job.yaml @@ -12,6 +12,9 @@ spec: spec: containers: - name: migrator + env: + - name: DEPLOY_TYPE + value: kustomize image: index.docker.io/sourcegraph/migrator:8.1.2687@sha256:c5bf0f81f3b07f7769f694525bef0a2d547a554f99113115a33b0925a16ef5ea args: ["up"] envFrom: