1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(edgeconfig): add edge config file interpolation info message on edge stack page [BE-11741] (#606)

This commit is contained in:
Oscar Zhou 2025-04-04 11:56:42 +13:00 committed by GitHub
parent 1b8fbbe7d7
commit 940bf990f9

View file

@ -10,6 +10,7 @@ import { TextTip } from '@@/Tip/TextTip';
import { FormControl } from '@@/form-components/FormControl'; import { FormControl } from '@@/form-components/FormControl';
import { Input, Select } from '@@/form-components/Input'; import { Input, Select } from '@@/form-components/Input';
import { useDocsUrl } from '@@/PageHeader/ContextHelp'; import { useDocsUrl } from '@@/PageHeader/ContextHelp';
import { InsightsBox } from '@@/InsightsBox';
import { RelativePathModel, getPerDevConfigsFilterType } from './types'; import { RelativePathModel, getPerDevConfigsFilterType } from './types';
@ -135,6 +136,20 @@ export function RelativePathFieldset({
{value.SupportPerDeviceConfigs && ( {value.SupportPerDeviceConfigs && (
<> <>
<InsightsBox
content={
<p>
Files named <code>$&#123;PORTAINER_EDGE_ID&#125;.env</code>{' '}
and/or <code>$&#123;PORTAINER_EDGE_GROUP&#125;.env</code>{' '}
contained by the config folder will be loaded for compose
file interpolation.
</p>
}
header="GitOps Edge Configurations"
insightCloseId="edge-config-interpolation-info"
className="mb-3"
/>
<div className="form-group"> <div className="form-group">
<div className="col-sm-12"> <div className="col-sm-12">
<TextTip color="blue">{pathTipSwarm}</TextTip> <TextTip color="blue">{pathTipSwarm}</TextTip>