From 27905a4b22ad2df30665d339ae9f7fa3bc01d61a Mon Sep 17 00:00:00 2001 From: vico Date: Mon, 6 Jul 2026 16:40:21 +0800 Subject: [PATCH 1/4] feat: support pipeline variable import export --- .../components/app-variable-config.tsx | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/shell/app/modules/application/pages/settings/components/app-variable-config.tsx b/shell/app/modules/application/pages/settings/components/app-variable-config.tsx index 8d8f973d8..eec7c21ca 100644 --- a/shell/app/modules/application/pages/settings/components/app-variable-config.tsx +++ b/shell/app/modules/application/pages/settings/components/app-variable-config.tsx @@ -60,6 +60,12 @@ const configTypeMap = { deploy: 'DeployConfig', }; +const convertExportConfigs = (configs: PIPELINE_CONFIG.ConfigItem[] = []) => + configs.map(({ key, value }) => ({ + key, + value, + })); + interface IProps { envToNs: Obj; configs: PIPELINE_CONFIG.ConfigItemMap; @@ -370,7 +376,7 @@ const VariableConfig = ({ - {configType === configTypeMap.deploy && ( + {importConfig && exportConfig && ( <>