feat(chart): _frontend/_postgres affinity 合并 + audit/shared-infra 注入 + bump 1.2.0

Tasks 10-11: podAffinity+nodeAffinity 合并到同一 affinity 块;
audit/shared-infra 走 tier;Chart.yaml 1.1.0→1.2.0。
This commit is contained in:
ximenchuifeng committed 2026-07-01 13:14:07 +08:00
1 parent e0d680d67c
commit 132285c253
6 files changed
+33 -9

No files matched your search

+13 -2
View File
@@ -33,8 +33,10 @@ spec:
labels:
app.kubernetes.io/component: {{ .name }}
spec:
{{- if .affinity }}
# 四胞胎:前端必须和后端同节点
{{- if .nodeName }}
nodeName: {{ .nodeName }}
{{- else if .affinity }}
# 四胞胎:前端必须和后端同节点(podAffinity + 点位/tier nodeAffinity 合并到同一 affinity 块)
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
@@ -42,6 +44,15 @@ spec:
matchLabels:
app.kubernetes.io/component: {{ .affinity }}
topologyKey: kubernetes.io/hostname
{{- if .pointAffinity }}
{{ include "mixingx.pointNodeAffinity" (dict "affinity" .pointAffinity "root" $root) }}
{{- else if and $root.Values.tier $root.Values.tier.enabled }}
{{ include "mixingx.tierNodeAffinity" (dict "role" .tierRole "root" $root) }}
{{- end }}
{{- else if .pointAffinity }}
{{ include "mixingx.pointAffinity" (dict "affinity" .pointAffinity "root" $root) }}
{{- else if and $root.Values.tier $root.Values.tier.enabled }}
{{ include "mixingx.tierAffinity" (dict "role" .tierRole "root" $root) }}
{{- end }}
containers:
- name: {{ .name }}