Skip to content

Commit 776f4ac

Browse files
committed
Remove duplicate configs, just fall back to existing default configs, but fed in as env vars instead of secrets
1 parent cfdc6e3 commit 776f4ac

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

charts/sourcegraph/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ In addition to the documented values, all services also support the following va
315315
| sourcegraph.nodeSelector | object | `{}` | Global NodeSelector, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) |
316316
| sourcegraph.podAnnotations | object | `{}` | Add extra annotations to attach to all pods |
317317
| sourcegraph.podLabels | object | `{}` | Add extra labels to attach to all pods |
318-
| sourcegraph.redisCacheEndpoint | string | `""` | If disabling Kubernetes secrets, and using our bundled Redis containers where this endpoint string does not contain a secret, then set this to "redis-cache:6379". If disabling Kubernetes secrets, and using an external Redis service where this endpoint string contains a secret, then set this to "", and inject the REDIS_CACHE_ENDPOINT environment variable on the needed pods (frontend, gitserver, searcher, and worker) |
319-
| sourcegraph.redisStoreEndpoint | string | `""` | If disabling Kubernetes secrets, and using our bundled Redis containers where this endpoint string does not contain a secret, then set this to "redis-store:6379". If disabling Kubernetes secrets, and using an external Redis service where this endpoint string contains a secret, then set this to "", and inject the REDIS_STORE_ENDPOINT environment variable on the needed pods (frontend, gitserver, searcher, and worker) |
320318
| sourcegraph.revisionHistoryLimit | int | `10` | Global deployment clean up policy, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy) |
321319
| sourcegraph.serviceLabels | object | `{}` | Add extra labels to all services |
322320
| sourcegraph.tolerations | list | `[]` | Global Tolerations, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) |

charts/sourcegraph/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ app.kubernetes.io/name: jaeger
251251
{{- define "sourcegraph.redisConnection" -}}
252252
{{- if .Values.sourcegraph.disableKubernetesSecrets -}}
253253
- name: REDIS_CACHE_ENDPOINT
254-
value: {{ .Values.sourcegraph.redisCacheEndpoint }}
254+
value: {{ .Values.redisCache.connection.endpoint }}
255255
- name: REDIS_STORE_ENDPOINT
256-
value: {{ .Values.sourcegraph.redisStoreEndpoint }}
256+
value: {{ .Values.redisStore.connection.endpoint }}
257257
{{- else -}}
258258
- name: REDIS_CACHE_ENDPOINT
259259
valueFrom:

charts/sourcegraph/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ sourcegraph:
4040
serviceLabels: {}
4141
# -- Disable the creation of Kubernetes secrets objects
4242
disableKubernetesSecrets: false
43-
# -- If disabling Kubernetes secrets, and using our bundled Redis containers where this endpoint string does not contain a secret, then set this to "redis-cache:6379". If disabling Kubernetes secrets, and using an external Redis service where this endpoint string contains a secret, then set this to "", and inject the REDIS_CACHE_ENDPOINT environment variable on the needed pods (frontend, gitserver, searcher, and worker)
44-
redisCacheEndpoint: ""
45-
# redisCacheEndpoint: redis-cache:6379
46-
# -- If disabling Kubernetes secrets, and using our bundled Redis containers where this endpoint string does not contain a secret, then set this to "redis-store:6379". If disabling Kubernetes secrets, and using an external Redis service where this endpoint string contains a secret, then set this to "", and inject the REDIS_STORE_ENDPOINT environment variable on the needed pods (frontend, gitserver, searcher, and worker)
47-
redisStoreEndpoint: ""
48-
# redisStoreEndpoint: redis-store:6379
4943

5044
# Generic application configuration options, used by most applications below
5145
# app: # Generally matches directory name

0 commit comments

Comments
 (0)