-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f20468b
commit db21c90
Showing
711 changed files
with
2,548 additions
and
23,826 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
VERSION=1.0.0 | ||
|
||
if [ ! $(which yj) ]; then | ||
echo "Installing yj to /usr/local/bin" | ||
wget https://github.com/sourcegraph/yj/releases/download/v${VERSION}/yj-${VERSION}-linux-amd64 -O /usr/local/bin/yj | ||
chmod a+x /usr/local/bin/yj | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
steps: | ||
- label: ":helm:" | ||
command: .buildkite/verify-generated.sh | ||
- label: ":k8s:" | ||
command: .buildkite/verify-valid.sh | ||
command: .buildkite/verify-yaml.sh | ||
- label: ":k8s:" | ||
command: .buildkite/verify-label.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
|
||
.buildkite/install-yj.sh | ||
|
||
if find base -name "*.yaml" -exec sh -c "cat {} | yj | jq --raw-output '.metadata.labels.deploy'" \; | tee /tmp/deploy-label | grep -v sourcegraph; then | ||
echo "> There exists a yaml file in base/ that does not contain .metadata.labels.deploy == sourcegraph" | ||
echo "> Run the following command to fix:" | ||
echo "find base/ -name \"*.yaml\" -exec sh -c \"cat {} | yj | jq '.metadata.labels.deploy = \\\"sourcegraph\\\"' | jy -o {}\" \;" | ||
|
||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
|
||
.buildkite/install-kubeval.sh | ||
|
||
find base -name '*.yaml' -exec kubeval {} + | ||
find configure -name '*.yaml' -exec kubeval {} + | ||
|
||
.buildkite/verify-label.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
generated/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"[yaml]": { | ||
"editor.formatOnSave": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ | ||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ | ||
!_TAG_PROGRAM_AUTHOR Universal Ctags Team // | ||
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ | ||
!_TAG_PROGRAM_URL https://ctags.io/ /official site/ | ||
!_TAG_PROGRAM_VERSION 0.0.0 /e5c86f7/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
> 🚨 If you are updating from a 2.10.x or previous deployment, follow the migration steps in [docs/migrate.md](docs/migrate.md). | ||
# Sourcegraph Data Center | ||
|
||
Sourcegraph Data Center is for organizations that need highly scalable and available code search and | ||
code intelligence. This repository contains documentation for creating, updating, and maintaining a | ||
Sourcegraph Data Center cluster. | ||
Sourcegraph Data Center cluster using Kubernetes. | ||
|
||
For product and [pricing](https://about.sourcegraph.com/pricing/) information, | ||
visit [about.sourcegraph.com](https://about.sourcegraph.com) | ||
or [contact us](https://about.sourcegraph.com/contact/sales) for more information. If you're just | ||
starting out, we recommend installing [Sourcegraph](https://about.sourcegraph.com/docs) on a single | ||
node first. Migrating to Data Center is easy when you're ready. | ||
|
||
- [Installation](docs/install.md) | ||
- [Installing](docs/install.md) | ||
- [Configuring](docs/configure.md) | ||
- [Updating](docs/update.md) | ||
- [Scaling](/docs/scale.md) | ||
- [Troubleshooting](/docs/troubleshoot.md) | ||
- [Admin guide](/docs/admin-guide.md) - useful guide for Sourcegraph admins | ||
- [Prometheus metrics](/docs/prom-metrics.md) - list of all Prometheus metrics that can be used for | ||
- [Scaling](docs/scale.md) | ||
- [Troubleshooting](docs/troubleshoot.md) | ||
- [Admin guide](docs/admin-guide.md) - useful guide for Sourcegraph admins | ||
- [Prometheus metrics](docs/prom-metrics.md) - list of all Prometheus metrics that can be used for | ||
application performance monitoring | ||
|
||
## Contributing | ||
|
||
We've made this Helm chart open source to better serve our customers' needs. If there is a | ||
configuration point or Kubernetes option you would like to add, we would love to incorporate | ||
it. Pull requests and issues are reviewed and responded to quickly. | ||
We've made our deployment configurations open source to better serve our customers' needs. If there is anything we can do to make deploying Sourcegraph easier just open an issue or a pull request and we will respond promptly! |
7 changes: 4 additions & 3 deletions
7
...ourcegraph/templates/backend.Service.yaml → base/backend.Service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
data: | ||
config.json: |- | ||
{ | ||
// Publicly accessible URL to web app (e.g., what you type into your browser). | ||
"appURL": "http://localhost:3080", | ||
// The authentication provider to use for identifying and signing in users. Only one entry is supported. | ||
// | ||
// The builtin auth provider with signup disallowed (shown below) means that after the initial site admin signs in, all other users must be invited. | ||
// | ||
// Other providers are documented here: | ||
// https://about.sourcegraph.com/docs/config/site#authproviders-array | ||
"auth.providers": [{"type": "builtin", "allowSignup": false}], | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
deploy: sourcegraph | ||
name: config-file |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...end/sourcegraph-frontend.RoleBinding.yaml → ...end/sourcegraph-frontend.RoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
{{- if ne .Values.cluster.rbac "disabled" }} | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: RoleBinding | ||
metadata: | ||
name: sourcegraph-frontend | ||
labels: | ||
labels: | ||
deploy: sourcegraph | ||
name: sourcegraph-frontend | ||
roleRef: | ||
apiGroup: "" | ||
kind: Role | ||
name: sourcegraph-frontend | ||
subjects: | ||
- kind: ServiceAccount | ||
name: sourcegraph-frontend | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.