From 6474a3889f52ed78f556eddbafa6f106d55baa3b Mon Sep 17 00:00:00 2001 From: Baoyuan Date: Fri, 6 Nov 2026 11:28:09 +0800 Subject: [PATCH] feat(api7ee): expose Service trafficDistribution (3.8) Backport #421 to release/3.8. Bump the api7ee3 chart patch and regenerate the README for this release line. (cherry picked from commit 54e92e061208def26344083a8c7244b60527f7fa) --- charts/api7/Chart.yaml | 2 +- charts/api7/README.md | 5 ++++- charts/api7/templates/dashboard-service.yaml | 3 +++ charts/api7/templates/developer-portal-service.yaml | 3 +++ charts/api7/templates/dp-manager-service.yaml | 3 +++ charts/api7/values.yaml | 6 ++++++ 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/api7/Chart.yaml b/charts/api7/Chart.yaml index 9b6335df..f1f44da6 100644 --- a/charts/api7/Chart.yaml +++ b/charts/api7/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.8.0 +version: 3.8.1 # 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 3053987d..5dacddb1 100644 --- a/charts/api7/README.md +++ b/charts/api7/README.md @@ -1,6 +1,6 @@ # api7ee3 -![Version: 3.8.0](https://img.shields.io/badge/Version-3.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.24](https://img.shields.io/badge/AppVersion-3.8.24-informational?style=flat-square) +![Version: 3.8.1](https://img.shields.io/badge/Version-3.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.8.24](https://img.shields.io/badge/AppVersion-3.8.24-informational?style=flat-square) A Helm chart for Kubernetes @@ -104,6 +104,7 @@ A Helm chart for Kubernetes | dashboard_service.ingress.tls | list | `[]` | | | dashboard_service.port | int | `7080` | | | dashboard_service.tlsPort | int | `7443` | | +| dashboard_service.trafficDistribution | string | `""` | Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. | | dashboard_service.type | string | `"ClusterIP"` | | | developer_portal.extraEnvVars | list | `[]` | | | developer_portal.extraVolumeMounts | list | `[]` | | @@ -144,6 +145,7 @@ A Helm chart for Kubernetes | developer_portal_service.ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | developer_portal_service.ingress.tls | list | `[]` | | | developer_portal_service.port | int | `4321` | | +| developer_portal_service.trafficDistribution | string | `""` | Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. | | developer_portal_service.type | string | `"ClusterIP"` | | | dp_manager.extraEnvVars | list | `[]` | | | dp_manager.extraVolumeMounts | list | `[]` | | @@ -202,6 +204,7 @@ A Helm chart for Kubernetes | dp_manager_service.ingress.tls | list | `[]` | | | dp_manager_service.port | int | `7900` | | | dp_manager_service.tlsPort | int | `7943` | | +| dp_manager_service.trafficDistribution | string | `""` | Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. | | dp_manager_service.type | string | `"ClusterIP"` | | | fullnameOverride | string | `""` | | | global.storageClass | string | `""` | | diff --git a/charts/api7/templates/dashboard-service.yaml b/charts/api7/templates/dashboard-service.yaml index d897818a..e3b84f7f 100644 --- a/charts/api7/templates/dashboard-service.yaml +++ b/charts/api7/templates/dashboard-service.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: type: {{ .Values.dashboard_service.type }} + {{- with .Values.dashboard_service.trafficDistribution }} + trafficDistribution: {{ . | quote }} + {{- end }} ports: - port: {{ .Values.dashboard_service.port }} targetPort: http diff --git a/charts/api7/templates/developer-portal-service.yaml b/charts/api7/templates/developer-portal-service.yaml index ff977091..fd38437f 100644 --- a/charts/api7/templates/developer-portal-service.yaml +++ b/charts/api7/templates/developer-portal-service.yaml @@ -12,6 +12,9 @@ metadata: {{- end }} spec: type: {{ .Values.developer_portal_service.type }} + {{- with .Values.developer_portal_service.trafficDistribution }} + trafficDistribution: {{ . | quote }} + {{- end }} ports: - port: {{ .Values.developer_portal_service.port }} targetPort: http diff --git a/charts/api7/templates/dp-manager-service.yaml b/charts/api7/templates/dp-manager-service.yaml index e1ccc5cb..ae02f889 100644 --- a/charts/api7/templates/dp-manager-service.yaml +++ b/charts/api7/templates/dp-manager-service.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: type: {{ .Values.dp_manager_service.type }} + {{- with .Values.dp_manager_service.trafficDistribution }} + trafficDistribution: {{ . | quote }} + {{- end }} {{- if .Values.dp_manager_service.loadBalancerClass }} loadBalancerClass: {{ .Values.dp_manager_service.loadBalancerClass }} {{- end }} diff --git a/charts/api7/values.yaml b/charts/api7/values.yaml index 7bc4de33..8eceb92d 100644 --- a/charts/api7/values.yaml +++ b/charts/api7/values.yaml @@ -139,6 +139,8 @@ securityContext: {} dashboard_service: type: ClusterIP + # -- Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. + trafficDistribution: "" annotations: {} port: 7080 tlsPort: 7443 @@ -167,6 +169,8 @@ dashboard_service: dp_manager_service: type: ClusterIP + # -- Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. + trafficDistribution: "" # loadBalancerClass: "my-loadbalancer-class" annotations: {} port: 7900 @@ -194,6 +198,8 @@ dp_manager_service: developer_portal_service: type: ClusterIP + # -- Service traffic distribution preference (e.g. PreferSameZone). Empty omits the field. Supported values depend on the Kubernetes version and feature gates. + trafficDistribution: "" annotations: {} port: 4321 ingress: