Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config to disable sg-test-connection via busybox #504

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
Loading