From b3e0a979ecce386a7b3f1c53b858c0a4ae1e92ee Mon Sep 17 00:00:00 2001 From: Jarvis Date: Thu, 6 Aug 2026 11:24:29 +0800 Subject: [PATCH] feat(api7): support extraEnvVars for file server The file_server component had no way to inject environment variables, unlike dashboard, dp_manager and developer_portal. --- charts/api7/Chart.yaml | 2 +- charts/api7/README.md | 3 ++- charts/api7/templates/file-server-deploy.yaml | 4 ++++ charts/api7/values.yaml | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/api7/Chart.yaml b/charts/api7/Chart.yaml index e4f017d5..8f3d50a3 100644 --- a/charts/api7/Chart.yaml +++ b/charts/api7/Chart.yaml @@ -17,7 +17,7 @@ type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) # major.minor mirrors the API7 EE release line (3.10.x), patch is this chart's # own counter on that line and is decoupled from the app patch (see appVersion). -version: 3.10.3 +version: 3.10.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/api7/README.md b/charts/api7/README.md index 00c9cb8c..764a62af 100644 --- a/charts/api7/README.md +++ b/charts/api7/README.md @@ -1,6 +1,6 @@ # api7ee3 -![Version: 3.10.3](https://img.shields.io/badge/Version-3.10.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.10.4](https://img.shields.io/badge/AppVersion-3.10.4-informational?style=flat-square) +![Version: 3.10.4](https://img.shields.io/badge/Version-3.10.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.10.4](https://img.shields.io/badge/AppVersion-3.10.4-informational?style=flat-square) A Helm chart for Kubernetes @@ -235,6 +235,7 @@ A Helm chart for Kubernetes | dp_manager_service.tlsPort | int | `7943` | | | dp_manager_service.type | string | `"ClusterIP"` | | | file_server.enabled | bool | `false` | | +| file_server.extraEnvVars | list | `[]` | | | file_server.image.pullPolicy | string | `"Always"` | | | file_server.image.repository | string | `"api7/api7-ee-file-server"` | | | file_server.image.tag | string | `"v3.10.4"` | | diff --git a/charts/api7/templates/file-server-deploy.yaml b/charts/api7/templates/file-server-deploy.yaml index 78e87416..bb7c844b 100644 --- a/charts/api7/templates/file-server-deploy.yaml +++ b/charts/api7/templates/file-server-deploy.yaml @@ -63,6 +63,10 @@ spec: initialDelaySeconds: {{ .Values.file_server.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.file_server.readinessProbe.periodSeconds }} failureThreshold: {{ .Values.file_server.readinessProbe.failureThreshold }} + {{- if .Values.file_server.extraEnvVars }} + env: + {{- include "api7ee3.tplvalues.render" (dict "value" .Values.file_server.extraEnvVars "context" $) | nindent 12 }} + {{- end }} volumeMounts: - name: config mountPath: /usr/local/api7/conf diff --git a/charts/api7/values.yaml b/charts/api7/values.yaml index 7fc63870..c2b0c1ad 100644 --- a/charts/api7/values.yaml +++ b/charts/api7/values.yaml @@ -93,6 +93,8 @@ file_server: repository: api7/api7-ee-file-server pullPolicy: Always tag: "v3.10.4" + + extraEnvVars: [] livenessProbe: initialDelaySeconds: 60 periodSeconds: 3