If existing already, delete the default k3d cluster:
k3d cluster delete
Start a k3d cluster and port forward the loadbalancer:
k3d cluster create -p "30080:80@loadbalancer"
In the deploy-sourcegraph-helm
repo:
Create your override.yaml
:
storageClass:
create: true
name: local-path
# Disable resources requests/limits
sourcegraph:
localDevMode: true
Deploy via Helm:
helm upgrade --install --create-namespace -n sourcegraph -f ./override.yaml sourcegraph charts/sourcegraph/.
Port-forward traffic:
kubectl port-forward -n sourcegraph svc/sourcegraph-frontend 30080:30080
Navigate to http://localhost:30080
Codeintel-qa testing:
cat ../dev-private/enterprise/dev/external-services-config.json
In the Sourcegraph repo modify
dev/codeintel-qa/internal/env.go
(the env var doesn't work):Navigate into the sourcegraph repo and export tokens:
Run the tests:
NOTE: I did not run
cmd/query
as it took too long, instead opting to navigate to the UI and confirm precise nav worked manually on a few files.