feat(charts): split platform release charts

This commit is contained in:
ximenchuifeng committed 2026-07-10 09:29:16 +08:00
1 parent aeb34d1e5b
commit 08ed1422fe
29 files changed
+1314 -15

No files matched your search

@@ -0,0 +1,37 @@
{{- define "mixingx-sso.storageClassName" -}}
{{- .Values.storage.className | default "local-path" -}}
{{- end -}}
{{- define "mixingx-sso.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 -}}