diff --git a/charts/sourcegraph-executor/dind/README.md b/charts/sourcegraph-executor/dind/README.md index 087e9184..84a952d0 100644 --- a/charts/sourcegraph-executor/dind/README.md +++ b/charts/sourcegraph-executor/dind/README.md @@ -88,6 +88,7 @@ In addition to the documented values, the `executor` and `private-docker-registr | privateDockerRegistry.image.registry | string | `"index.docker.io"` | | | privateDockerRegistry.image.repository | string | `"registry"` | | | privateDockerRegistry.image.tag | int | `3` | | +| privateDockerRegistry.registryProxyRemoteUrl | string | `"https://registry-1.docker.io"` | Remote registry URL used by the private registry pull-through cache. | | privateDockerRegistry.storageSize | string | `"10Gi"` | | | queues | list | `[]` | Optional list of queues to deploy as standalone Deployments. When set, the single executor Deployment is not rendered. Each entry supports: name (required) — used as the deployment name suffix (executor-) queueName — sets EXECUTOR_QUEUE_NAME; defaults to name if omitted queueNames — sets EXECUTOR_QUEUE_NAMES (comma-joined); takes precedence over queueName when set replicaCount, resources, env (merged with executor.env, queue overrides) | | sourcegraph.affinity | object | `{}` | Affinity, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) | diff --git a/charts/sourcegraph-executor/dind/templates/private-docker-registry/private-docker-registry.Statefulset.yaml b/charts/sourcegraph-executor/dind/templates/private-docker-registry/private-docker-registry.Statefulset.yaml index fff6d337..800bd6aa 100644 --- a/charts/sourcegraph-executor/dind/templates/private-docker-registry/private-docker-registry.Statefulset.yaml +++ b/charts/sourcegraph-executor/dind/templates/private-docker-registry/private-docker-registry.Statefulset.yaml @@ -46,7 +46,7 @@ spec: imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }} env: - name: REGISTRY_PROXY_REMOTEURL - value: http://registry-1.docker.io + value: {{ .Values.privateDockerRegistry.registryProxyRemoteUrl | quote }} ports: - name: http containerPort: 5000 diff --git a/charts/sourcegraph-executor/dind/values.yaml b/charts/sourcegraph-executor/dind/values.yaml index e27885cf..3eae65be 100644 --- a/charts/sourcegraph-executor/dind/values.yaml +++ b/charts/sourcegraph-executor/dind/values.yaml @@ -203,6 +203,8 @@ privateDockerRegistry: # -- Whether to deploy the private registry. Only one registry is needed when deploying multiple executors. # More information: https://docs.sourcegraph.com/admin/executors/deploy_executors#using-private-registries enabled: true + # -- Remote registry URL used by the private registry pull-through cache. + registryProxyRemoteUrl: https://registry-1.docker.io image: registry: index.docker.io repository: registry