-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n and hpa target #3548
i18n and hpa target #3548
Conversation
🤖 Generated by lychee actionSummary
Full action output |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3548 +/- ##
=======================================
Coverage 72.97% 72.97%
=======================================
Files 8 8
Lines 618 618
=======================================
Hits 451 451
Misses 132 132
Partials 35 35 ☔ View full report in Codecov by Sentry. |
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by Copilot at ba36fb6
Summary
🔄📈🌐
This pull request refactors the way the frontend gets the service environment variables from the backend, and fixes some issues with the user interface and the data conversion. It adds a new API handler and function to fetch the
SEALOS_DOMAIN
andINGRESS_SECRET
variables from the backend, and updates theApp
component and theloadInitData
function to use them. It also changes some texts in thecommon.json
file, and adjusts thehpa
value calculation in theadaptAppDetail
andjson2HPA
functions.Walkthrough
setServiceEnv
function withloadInitData
function to fetch service environment variables from backend (link, link, link, link)SEALOS_DOMAIN
andINGRESS_SECRET
props fromApp
component, as they are no longer needed (link)getInitData
API function and type to get service environment variables from backend (link, link, link)hpa
value from percentage to decimal and vice versa for frontend and backend compatibility (link, link)