diff --git a/charts/sourcegraph/README.md b/charts/sourcegraph/README.md index 103dc890..1e905141 100644 --- a/charts/sourcegraph/README.md +++ b/charts/sourcegraph/README.md @@ -300,6 +300,7 @@ In addition to the documented values, all services also support the following va | searcher.serviceAccount.create | bool | `false` | Enable creation of ServiceAccount for `searcher` | | searcher.serviceAccount.name | string | `""` | Name of the ServiceAccount to be created or an existing ServiceAccount | | searcher.storageSize | string | `"26Gi"` | Size of the PVC for searcher pods to store cache data | +| sgTestConnection | object | `{"enabled":true}` | Enable the busybox connection test after deployment | | sourcegraph.affinity | object | `{}` | Global Affinity, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) | | sourcegraph.image.defaultTag | string | `"{{ .Chart.AppVersion }}"` | Global docker image tag | | sourcegraph.image.pullPolicy | string | `"IfNotPresent"` | Global docker image pull policy | diff --git a/charts/sourcegraph/templates/tests/test-connection.yaml b/charts/sourcegraph/templates/tests/test-connection.yaml index 8bf16f39..1fdec25a 100644 --- a/charts/sourcegraph/templates/tests/test-connection.yaml +++ b/charts/sourcegraph/templates/tests/test-connection.yaml @@ -1,3 +1,4 @@ +{{- if .Values.sgTestConnection.enabled }} apiVersion: v1 kind: Pod metadata: @@ -12,4 +13,5 @@ spec: image: busybox command: ['wget'] args: ['sourcegraph-frontend:30080/'] - restartPolicy: Never \ No newline at end of file + restartPolicy: Never +{{- end }} diff --git a/charts/sourcegraph/values.yaml b/charts/sourcegraph/values.yaml index 320f488d..71d99506 100644 --- a/charts/sourcegraph/values.yaml +++ b/charts/sourcegraph/values.yaml @@ -1266,3 +1266,7 @@ extraResources: [] # preemptionPolicy: Never # description: "gitserver priority class" priorityClasses: [] + +# -- Enable the busybox connection test after deployment +sgTestConnection: + enabled: true