Repository navigation
Conversation
Port labring/sealos#7358 at 09e154a9c477b4002af3bab84e4c2e8d4ecbca9e into release-v5.1/database, adapting paths to the standalone workspace. Co-authored-by: 谢金虎 <1050780355@qq.com>
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.
Summary
Port labring/sealos#7358 at
09e154a9c477b4002af3bab84e4c2e8d4ecbca9eintorelease-v5.1/database, retaining original author attribution and adapting paths to the standalone repository.Repair PolarDB-X DN replica selection, CPU/memory units, component-specific scaling, restart component lists, expansion through existing data volume templates, logical storage display, normalized resource history, and API responses based on observed Cluster resources. Includes the component-selection fix previously ported from #7327 in #3; this PR can replace that older port. Refs #2.
Validation
git diff --check, and staged Gitleaks passed.src/components/ErrorLog/LogCounts.tsximport ofemptyChart.svg(TS2307).Sequence Diagram
sequenceDiagram participant User participant API as Database API participant Mapper as PolarDB-X resource mapper participant K8s as KubeBlocks API User->>API: Request resource change or restart API->>K8s: Read current Cluster components and volumes K8s-->>API: Current resource specification API->>Mapper: Normalize units and compare desired resources alt Resources changed Mapper-->>API: OpsRequest for changed components and existing volumes API->>K8s: Submit OpsRequest else No resource changes Mapper-->>API: Keep current resources end API->>K8s: Read observed Cluster resources K8s-->>API: Current resource values API-->>User: Return normalized observed values