From 9c63eaf83f5dbf02c659ce2a8602be5733b8b586 Mon Sep 17 00:00:00 2001 From: Richard Petersen <richard.petersen@open-xchange.com> Date: Tue, 7 Sep 2021 12:20:52 +0200 Subject: [PATCH] Cleanup env variables doku and added CACHE_TTL --- .env.defaults | 1 + README.md | 3 --- helm/core-manifest-service/templates/deployment.yaml | 3 +++ helm/core-manifest-service/values.yaml | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.defaults b/.env.defaults index 95d8b19..9ceeea3 100644 --- a/.env.defaults +++ b/.env.defaults @@ -1,2 +1,3 @@ +CACHE_TTL=30000 PORT=8080 MANIFEST_URLS= diff --git a/README.md b/README.md index bf4bc5b..899ece8 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,10 @@ helm upgrade -i -f manifest-service/values.yaml -f values/develop.yaml manifest- | Parameter | Description | Default | |-----------------|---------------------------------|----------| -| `MANIFEST_URLS` | Comma separated list of servers | `""` | | `PORT` | Exposed port | `"8080"` | **kubernetes** | Parameter | Description | Default | |----------------|---------------------------------|----------| -| `manifestUrls` | list of servers | `""` | | `port` | Exposed port | `"8080"` | - diff --git a/helm/core-manifest-service/templates/deployment.yaml b/helm/core-manifest-service/templates/deployment.yaml index fac2204..9ceeebb 100644 --- a/helm/core-manifest-service/templates/deployment.yaml +++ b/helm/core-manifest-service/templates/deployment.yaml @@ -37,6 +37,9 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: CACHE_TTL + value: "{{ .Values.cacheTTL | int }}" ports: - name: http containerPort: {{ .Values.containerPort | default 8080 }} diff --git a/helm/core-manifest-service/values.yaml b/helm/core-manifest-service/values.yaml index 3096894..b8ede24 100644 --- a/helm/core-manifest-service/values.yaml +++ b/helm/core-manifest-service/values.yaml @@ -82,3 +82,6 @@ nodeSelector: {} tolerations: [] affinity: {} + +# service specific configuration +cacheTTL: 30000 -- GitLab