From 89b4cac1c36551b928ed333aeb10d02fc2ea0426 Mon Sep 17 00:00:00 2001 From: Michael Lin Date: Wed, 2 Mar 2022 12:28:49 -0800 Subject: [PATCH] Remove configmap examples --- .../examples/external-redis/README.md | 6 +- .../override-separate-configmap.yaml | 86 ------------------- .../override-shared-configmap.yaml | 56 ------------ 3 files changed, 3 insertions(+), 145 deletions(-) delete mode 100644 charts/sourcegraph/examples/external-redis/override-separate-configmap.yaml delete mode 100644 charts/sourcegraph/examples/external-redis/override-shared-configmap.yaml diff --git a/charts/sourcegraph/examples/external-redis/README.md b/charts/sourcegraph/examples/external-redis/README.md index b65c6c15..101d7fdd 100644 --- a/charts/sourcegraph/examples/external-redis/README.md +++ b/charts/sourcegraph/examples/external-redis/README.md @@ -17,7 +17,7 @@ When using external Redis instances, you’ll need to specify the corresponding - [worker.Deployment.yaml](../../templates/worker/worker.Deployment.yaml) ## Option 1 - One shared external Redis instance -Example values override: [override-shared.yaml](./override-shared.yaml), [override-shared-configmap.yaml](./override-shared-configmap.yaml) +Example values override [override-shared.yaml](./override-shared.yaml) ### `REDIS_ENDPOINT` @@ -25,7 +25,7 @@ The string must either have the format `$HOST:PORT` or follow the [IANA specific ## Option 2 - Two separate external Redis instances -Example values override: [override-separate.yaml](./override-separate.yaml), [override-separate-configmap.yaml](./override-separate-configmap.yaml) +Example values override [override-separate.yaml](./override-separate.yaml) ### `REDIS_CACHE_ENDPOINT` @@ -60,7 +60,7 @@ data: REDIS_STORE_ENDPOINT: "" ``` -Optionally, if your external Redis instances do not required authentication, you may use a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) +Optionally, if your external Redis instances do not required authentication, you may use a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/). Learn more about [how to reference ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-using-configmap-data). ```yaml apiVersion: v1 diff --git a/charts/sourcegraph/examples/external-redis/override-separate-configmap.yaml b/charts/sourcegraph/examples/external-redis/override-separate-configmap.yaml deleted file mode 100644 index b24ef962..00000000 --- a/charts/sourcegraph/examples/external-redis/override-separate-configmap.yaml +++ /dev/null @@ -1,86 +0,0 @@ -# Demonstrate using external redis instance(s) -# Disables deployment of the internal `redis-cache` and `redis-store` deployment - -frontend: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -repoUpdater: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -gitserver: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -searcher: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -symbols: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -worker: - env: - REDIS_CACHE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_CACHE_ENDPOINT - REDIS_STORE_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_STORE_ENDPOINT - -redisCache: - enabled: false - -redisStore: - enabled: false diff --git a/charts/sourcegraph/examples/external-redis/override-shared-configmap.yaml b/charts/sourcegraph/examples/external-redis/override-shared-configmap.yaml deleted file mode 100644 index 55f7126c..00000000 --- a/charts/sourcegraph/examples/external-redis/override-shared-configmap.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Demonstrate using external redis instance(s) -# Disables deployment of the internal `redis-cache` and `redis-store` deployment - -frontend: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -repoUpdater: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -gitserver: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -searcher: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -symbols: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -worker: - env: - REDIS_ENDPOINT: - valueFrom: - configMapKeyRef: # Pre-existing configmap, not created by this chart - name: sourcegraph-external-redis-credentials - key: REDIS_ENDPOINT - -redisCache: - enabled: false - -redisStore: - enabled: false