feat(chart): add split release charts

This commit is contained in:
ximenchuifeng committed 2026-07-03 07:44:08 +08:00
1 parent 042a72ec0f
commit 05d7a39a4c
23 files changed
+1366

No files matched your search

@@ -0,0 +1,37 @@
{{- define "mixingx-platform.storageClassName" -}}
{{- .Values.storage.className | default "local-path" -}}
{{- end -}}
{{- define "mixingx-platform.tierAffinity" -}}
{{- $root := .root -}}
{{- $role := .role -}}
{{- if and $root.Values.tier $root.Values.tier.enabled -}}
{{- $service := index $root.Values.tier.services $role -}}
{{- if $service }}
affinity:
nodeAffinity:
{{- if eq ($service.mode | default "preferred") "required" }}
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: {{ $root.Values.tier.nodeLabel }}
operator: In
values:
{{- range $service.tiers }}
- {{ . }}
{{- end }}
{{- else }}
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: {{ $root.Values.tier.nodeLabel }}
operator: In
values:
{{- range $service.tiers }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}