Skip to content

Commit 428e78f

Browse files
authored
Add example showing reuse of k8s secret for executors (#731)
### Checklist - [ ] Follow the [manual testing process](https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/TEST.md) - [ ] Update [changelog](https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/charts/sourcegraph/CHANGELOG.md) - [ ] Update [Kubernetes update doc](https://docs.sourcegraph.com/admin/updates/kubernetes) ### Test plan Adding examples to doc files <!-- As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests are REQUIRED to provide a "test plan". A test plan is a loose explanation of what you have done or implemented to test this, as outlined in our Testing principles and guidelines: https://docs.sourcegraph.com/dev/background-information/testing_principles Write your test plan here after the "Test plan" header. -->
1 parent 22e639f commit 428e78f

File tree

2 files changed

+21
-0
lines changed
  • charts

2 files changed

+21
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Override file demonstrating the use of a private docker image registry and custom image names
2+
3+
sourcegraph:
4+
image:
5+
repository: custom-repo.ecr.us-east-1.amazonaws.com/sourcegraph
6+
7+
# Registry credentials: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
8+
imagePullSecrets:
9+
- name: regcred # Pre-existing secret that contains the credentials needed to pull from the image registry
10+
11+
# Allow Executors to reuse the same registry credentials to pull the needed images for Batch Changes and Auto-indexing
12+
executor:
13+
extraEnv:
14+
- name: KUBERNETES_IMAGE_PULL_SECRETS
15+
value: regcred

charts/sourcegraph/examples/private-image-registry/override.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ alpine:
2525
image:
2626
name: alpine # Use a custom name instead of the Sourcegraph name - i.e. alpine-3.12
2727
tag: 3.12 # Use a custom tag instead of the default - i.e. 3.35.1
28+
29+
# Allow Executors to reuse the same registry credentials to pull the needed images for Batch Changes and Auto-indexing
30+
executor:
31+
extraEnv:
32+
- name: KUBERNETES_IMAGE_PULL_SECRETS
33+
value: regcred

0 commit comments

Comments
 (0)