Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions charts/sourcegraph/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sgTestConnection.enabled -}}
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -9,7 +10,8 @@ metadata:
spec:
containers:
- name: wget
image: busybox
image: {{ include "sourcegraph.image" (list . "sgTestConnection") }}
command: ['wget']
args: ['sourcegraph-frontend:30080/']
restartPolicy: Never
restartPolicy: Never
{{- end }}
10 changes: 10 additions & 0 deletions charts/sourcegraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,16 @@ searcher:
# -- Size of the PVC for searcher pods to store cache data
storageSize: 26Gi

sgTestConnection:
# Run a connection test after instance startup, for CI/CD testing
# Setting to true to not change default behaviour
enabled: true
image:
# -- Docker image tag for the sg-test-connection pod
defaultTag: ''
# -- Docker image name for the sg-test-connection pod
name: "busybox"

storageClass:
# -- Enable creation of storageClass.
# Disable if you have your own existing storage class
Expand Down