fix(info): 支持 globals.yaml 全局数据库地址查询并修复直连 SSL 问题#3
Merged
cuisongliu merged 1 commit intolabring-sigs:mainfrom Apr 14, 2026
Merged
fix(info): 支持 globals.yaml 全局数据库地址查询并修复直连 SSL 问题#3cuisongliu merged 1 commit intolabring-sigs:mainfrom
cuisongliu merged 1 commit intolabring-sigs:mainfrom
Conversation
Contributor
bxy4543
commented
Apr 14, 2026
- 优先读取 /root/.sealos/cloud/values/globals.yaml 中的 global.featureConfigs.globalDatabase.uri
- 非 k8s.svc 地址直接直连查询用户 UID
- k8s.svc 地址解析为 Service ClusterIP 和端口后再直连查询
- globals.yaml 不存在或未配置时保持原有 pod 内查询逻辑
- 直连数据库若未配置 sslmode 默认补齐为 disable
- 遇到 "SSL is not enabled on the server" 时自动以 sslmode=disable 重试
- 优先读取 /root/.sealos/cloud/values/globals.yaml 中的 global.featureConfigs.globalDatabase.uri - 非 k8s.svc 地址直接直连查询用户 UID - k8s.svc 地址解析为 Service ClusterIP 和端口后再直连查询 - globals.yaml 不存在或未配置时保持原有 pod 内查询逻辑 - 直连数据库若未配置 sslmode 默认补齐为 disable - 遇到 "SSL is not enabled on the server" 时自动以 sslmode=disable 重试
cuisongliu
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.