From 4e88920f890466bbec021bf0cb89f5baaaebfab5 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 22 Aug 2023 22:16:46 -0600 Subject: [PATCH 1/3] fix invalid field --- charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml index 9d5443bb..a187ef9e 100644 --- a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml +++ b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml @@ -20,8 +20,8 @@ spec: matchLabels: {{- include "sourcegraph.selectorLabels" . | nindent 6 }} app: {{ .Values.qdrant.name }} - strategy: - type: Recreate + updateStrategy: + type: RollingUpdate template: metadata: annotations: From 455de47e3af141b4f881aedfebf317a2889e611d Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 22 Aug 2023 22:24:06 -0600 Subject: [PATCH 2/3] fix other validation errors --- charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml | 1 + charts/sourcegraph/values.yaml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml index a187ef9e..6754facf 100644 --- a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml +++ b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml @@ -20,6 +20,7 @@ spec: matchLabels: {{- include "sourcegraph.selectorLabels" . | nindent 6 }} app: {{ .Values.qdrant.name }} + serviceName: qdrant updateStrategy: type: RollingUpdate template: diff --git a/charts/sourcegraph/values.yaml b/charts/sourcegraph/values.yaml index bcc9d73d..023c8896 100644 --- a/charts/sourcegraph/values.yaml +++ b/charts/sourcegraph/values.yaml @@ -352,7 +352,6 @@ qdrant: allowPrivilegeEscalation: false runAsUser: 100 runAsGroup: 101 - fsGroup: 101 # -- Security context for the `qdrant` container, # learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) podSecurityContext: From ced841d0f90b16824e8683916cefe511940dc1f4 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 22 Aug 2023 22:28:50 -0600 Subject: [PATCH 3/3] update docs --- charts/sourcegraph/README.md | 2 +- override.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 override.yaml diff --git a/charts/sourcegraph/README.md b/charts/sourcegraph/README.md index a5f49939..71366579 100644 --- a/charts/sourcegraph/README.md +++ b/charts/sourcegraph/README.md @@ -265,7 +265,7 @@ In addition to the documented values, all services also support the following va | prometheus.serviceAccount.name | string | `"prometheus"` | Name of the ServiceAccount to be created or an existing ServiceAccount | | prometheus.storageSize | string | `"200Gi"` | PVC Storage Request for `prometheus` data volume | | qdrant.config | object | `{"debug":true,"log_level":"INFO"}` | Resource requests & limits for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | -| qdrant.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"fsGroup":101,"runAsGroup":101,"runAsUser":100}` | Security context for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) | +| qdrant.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"runAsGroup":101,"runAsUser":100}` | Security context for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) | | qdrant.enabled | bool | `false` | Enable `qdrant` | | qdrant.env | object | `{}` | Environment variables for the `qdrant` container | | qdrant.extraVolumeMounts | object | `{}` | | diff --git a/override.yaml b/override.yaml new file mode 100644 index 00000000..d20bad63 --- /dev/null +++ b/override.yaml @@ -0,0 +1,30 @@ +# Disable SC creation +storageClass: + create: true + name: standard + provisioner: docker.io/hostpath + parameters: + reclaimPolicy: Retain + + +# Disable resources requests/limits +sourcegraph: + localDevMode: true + image: + defaultTag: insiders + useGlobalTagAsDefault: true +# More values to be added in order to test your change + +qdrant: + enabled: true + +gitserver: + env: + SRC_REPOS_DESIRED_PERCENT_FREE: + value: "0" + +frontend: + env: + QDRANT_ENDPOINT: + value: "qdrant:6334" +