feat: database env set storageName #3491
Merged
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.
🤖 Generated by Copilot at 8ec926c
Summary
🆕🐛🚀
This pull request adds a new feature to the frontend app that allows the user to configure the storage class name for the backup volumes of the database provider. It also fixes a bug in the backup status logic and updates the dev host IP address in the README file. The main changes are in the files
_app.tsx
,static.ts
,json2Yaml.ts
, and.env.template
.Walkthrough
STORAGE_CLASSNAME
to the frontend app to specify the storage class name for the backup volumes (link)updateStorageClassName
from the static store module to update the global variableStorageClassName
with the value from the environment variable in theApp
component (link, link)env_storage_className
to theApp
component props and pass the value of the environment variableSTORAGE_CLASSNAME
from the initial props (link, link)StorageClassName
and a new functionupdateStorageClassName
in the static store module to hold and update the value of the storage class name for the backup volumes (link, link)StorageClassName
from the static store module and use it to generate the YAML files for creating clusters with backup volumes in the json2Yaml module (link)storageClassName
in the json2CreateCluster function that holds an object with the keystorageClassName
and the value from the global variableStorageClassName
, or an empty object if the global variable is undefined (link)storageClassName
into the backup volume spec for each node type (master, worker, tidb, tikv, pd) in the json2CreateCluster function to add the storage class name to the YAML file if it is defined, or leave it unchanged if it is not (link, link, link, link, link)UnKnow
instead of throwing an error (link)README.md
file to match the current cluster configuration (link)