Skip to content

Commit b21c000

Browse files
committed
Update comments and spacing
1 parent 998bb3e commit b21c000

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

charts/sourcegraph/templates/_helpers.tpl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,19 +254,22 @@ so that customers can configure them any of these ways:
254254
255255
1. Create a new Kubernetes secret, with default values (default, no override config required)
256256
257-
2. Use an existing Kubernetes secret, by configuring .Values.redisCache.connection.existingSecret
257+
2. Use an existing Kubernetes secret, by configuring:
258+
.Values.redisCache.connection.existingSecret: <secret name>,
259+
.Values.redisStore.connection.existingSecret: <secret name>,
258260
259-
3. Do not create or use Kubernetes secrets, just pass the default values directly as environment variables into the needed pods, by configuring .Values.sourcegraph.disableKubernetesSecrets = true
261+
3. Do not create or use Kubernetes secrets, just pass the default values directly as environment variables into the needed pods, by configuring:
262+
.Values.sourcegraph.disableKubernetesSecrets: true
260263
261264
4. Do not create or use Kubernetes secrets, but provide custom values (ex. external Redis) to have this function pass them into the REDIS_CACHE_ENDPOINT and REDIS_STORE_ENDPOINT env vars on frontend, gitserver, searcher, and worker pods, by configuring:
262-
.Values.sourcegraph.disableKubernetesSecrets = true,
263-
.Values.redisCache.connection.endpoint = <custom value for REDIS_CACHE_ENDPOINT>,
264-
.Values.redisStore.connection.endpoint = <custom value for REDIS_STORE_ENDPOINT>,
265+
.Values.sourcegraph.disableKubernetesSecrets: true,
266+
.Values.redisCache.connection.endpoint: <custom value for REDIS_CACHE_ENDPOINT>,
267+
.Values.redisStore.connection.endpoint: <custom value for REDIS_STORE_ENDPOINT>,
265268
266269
5. Do not create or use Kubernetes secrets, but pass custom values (ex. external Redis) directly as environment variables into the needed pods, by configuring:
267-
.Values.sourcegraph.disableKubernetesSecrets = true,
268-
.Values.redisCache.connection.endpoint = "",
269-
.Values.redisStore.connection.endpoint = "",
270+
.Values.sourcegraph.disableKubernetesSecrets: true,
271+
.Values.redisCache.connection.endpoint: "",
272+
.Values.redisStore.connection.endpoint: "",
270273
and defining the REDIS_CACHE_ENDPOINT and REDIS_STORE_ENDPOINT env vars on frontend, gitserver, searcher, and worker pods
271274
272275
*/}}

charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ spec:
5050
{{- toYaml . | nindent 8 }}
5151
{{- end }}
5252
env:
53-
{{- include "sourcegraph.redisConnection" .| nindent 8 }}
54-
{{- range $name, $item := .Values.searcher.env}}
53+
{{- include "sourcegraph.redisConnection" . | nindent 8 }}
54+
{{- range $name, $item := .Values.searcher.env }}
5555
- name: {{ $name }}
5656
{{- $item | toYaml | nindent 10 }}
5757
{{- end }}

0 commit comments

Comments
 (0)