You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So that customers can configure them any of these ways:
254
-
1. Create a new Kubernetes secret, with default values (default, no override config required)
255
-
2. Use an existing Kubernetes secret, by configuring .Values.redisCache.connection.existingSecret
256
-
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
257
-
4. Do not create or use Kubernetes secrets, but pass custom values (ex. external Redis) directly as environment variables into the needed pods, by configuring .Values.sourcegraph.disableKubernetesSecrets = true, .Values.redisCache.connection.endpoint = "", .Values.redisStore.connection.endpoint = "", and defining the REDIS_CACHE_ENDPOINT and REDIS_STORE_ENDPOINT env vars on frontend, gitserver, searcher, and worker pods
252
+
Set redisCache and redisStore endpoints,
253
+
so that customers can configure them any of these ways:
254
+
255
+
1. Create new Kubernetes secrets, with default values (default, no override config required)
256
+
257
+
2. Use existing Kubernetes secrets, managed externally, by configuring:
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:
- it: should not reference secret when .sourcegraph.disableKubernetesSecrets is true
25
+
set:
26
+
sourcegraph:
27
+
disableKubernetesSecrets: true
28
+
redisCache:
29
+
connection:
30
+
endpoint: redis-cache-svc
31
+
redisStore:
32
+
connection:
33
+
endpoint: redis-store-svc
34
+
asserts:
35
+
- contains:
36
+
path: spec.template.spec.containers[0].env
37
+
content:
38
+
name: REDIS_CACHE_ENDPOINT
39
+
value: redis-cache-svc
40
+
- contains:
41
+
path: spec.template.spec.containers[0].env
42
+
content:
43
+
name: REDIS_STORE_ENDPOINT
44
+
value: redis-store-svc
45
+
- it: should fail when .sourcegraph.disableKubernetesSecrets is true but .Values.redisCache.connection.endpoint and .Values.redisStore.connection.endpoint are not set
46
+
set:
47
+
sourcegraph:
48
+
disableKubernetesSecrets: true
49
+
redisCache:
50
+
connection:
51
+
endpoint: ""
52
+
redisStore:
53
+
connection:
54
+
endpoint: ""
55
+
asserts:
56
+
- failedTemplate:
57
+
errorMessage: .Values.redisCache.connection.endpoint and .Values.redisStore.connection.endpoint must be set when disableKubernetesSecrets is true!
0 commit comments