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..151ecfd20 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,14 @@ const configTypeMap = { deploy: 'DeployConfig', }; +const convertExportConfigs = (configs: PIPELINE_CONFIG.ConfigItem[] = []) => + configs + .filter(({ encrypt }) => !encrypt) + .map(({ key, value }) => ({ + key, + value, + })); + interface IProps { envToNs: Obj; configs: PIPELINE_CONFIG.ConfigItemMap; @@ -370,7 +378,7 @@ const VariableConfig = ({ - {configType === configTypeMap.deploy && ( + {importConfig && exportConfig && ( <>