feat(sso/ultra/edge-unit): Deployment 加 checksum/config 注解,ConfigMap 变更自动触发滚动(对齐 agent-unit f74201a 模式)

This commit is contained in:
ximenchuifeng committed 2026-08-20 13:11:57 +08:00
1 parent e7c8c665a4
commit c4527a8ec5
6 files changed
+96 -63

No files matched your search

@@ -2,6 +2,35 @@
{{- .Values.storage.className | default "local-path" -}}
{{- end -}}
{{- define "mixingx-sso.configData" -}}
{{- $root := . -}}
{{- $name := $root.Values.sso.name -}}
{{- $role := $root.Values.sso.role -}}
{{- $serviceId := $root.Values.sso.serviceId -}}
{{- $pgHost := printf "%s-postgres-service" $name -}}
{{- $backendPort := $root.Values.sso.port | default 8080 -}}
HTTP_PORTS: "{{ $backendPort }}"
REDIS_HOST: "{{ $root.Values.sharedInfra.redis.host }}"
REDIS_PORT: "{{ $root.Values.sharedInfra.redis.port }}"
POSTGRESQL_HOST: "{{ $pgHost }}"
POSTGRESQL_PORT: "{{ $root.Values.sharedInfra.postgres.port }}"
POSTGRESQL_USERNAME: "{{ $root.Values.sharedInfra.postgres.username }}"
MESSAGING_HOST: "{{ $root.Values.sharedInfra.rabbitmq.host }}"
MESSAGING_PORT: "{{ $root.Values.sharedInfra.rabbitmq.port }}"
MESSAGING_USERNAME: "{{ $root.Values.sharedInfra.rabbitmq.username }}"
services__gateway__http__0: "http://gateway-service:8080"
{{ upper $role }}_SERVICE_ID: "{{ $serviceId }}"
{{- if $root.Values.audit.publisher.enabled }}
AuditMqttPublisher__BrokerUrl: "{{ $root.Values.audit.publisher.brokerUrl }}"
AuditMqttPublisher__Service: "{{ $root.Values.audit.publisher.service | default "sso" }}"
AuditMqttPublisher__InstanceId: "{{ $root.Values.audit.publisher.instanceId | default "sso" }}"
{{- end }}
OTEL_EXPORTER_OTLP_ENDPOINT: "{{ $root.Values.sharedInfra.otlp.endpoint }}"
OTEL_EXPORTER_OTLP_PROTOCOL: "{{ $root.Values.sharedInfra.otlp.protocol }}"
OTEL_SERVICE_NAME: "{{ $name }}"
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
{{- end -}}
{{- define "mixingx-sso.tierAffinity" -}}
{{- $root := .root -}}
{{- $role := .role -}}