From 7c61825d5f3c5e0fa278c3ddbe68590bedd3add5 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 16 Mar 2024 04:11:46 -0600 Subject: [PATCH] enable enviroment variables --- charts/cops/Chart.yaml | 2 +- charts/cops/templates/deployment.yaml | 9 +++++++++ charts/cops/values.yaml | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/charts/cops/Chart.yaml b/charts/cops/Chart.yaml index d648fbe..2a3d6a7 100644 --- a/charts/cops/Chart.yaml +++ b/charts/cops/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: cops -version: 0.0.2 +version: 0.0.3 description: Chart for Calibre OPDS (and HTML) PHP Server keywords: - calibre diff --git a/charts/cops/templates/deployment.yaml b/charts/cops/templates/deployment.yaml index 0f87adc..e7b10b2 100644 --- a/charts/cops/templates/deployment.yaml +++ b/charts/cops/templates/deployment.yaml @@ -40,6 +40,15 @@ spec: name: cops-books resources: {{- toYaml .Values.deployment.resources | nindent 12 }} + env: + {{- range $k,$v := .Values.deployment.env }} + - name: {{ $k }} + value: {{ $v | quote }} + {{- end }} + {{- with .Values.deployment.envFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} livenessProbe: httpGet: path: / diff --git a/charts/cops/values.yaml b/charts/cops/values.yaml index d1c2fbf..0a3dab8 100644 --- a/charts/cops/values.yaml +++ b/charts/cops/values.yaml @@ -9,6 +9,7 @@ deployment: PGID: "1000" PUID: "1000" TZ: UTC + envFrom: resources: limits: cpu: 500m