|
|
|
@ -2,6 +2,7 @@ import { FormControl } from '@/portainer/components/form-components/FormControl'
|
|
|
|
|
import { Input } from '@/portainer/components/form-components/Input';
|
|
|
|
|
import { FormSectionTitle } from '@/portainer/components/form-components/FormSectionTitle';
|
|
|
|
|
import { SwitchField } from '@/portainer/components/form-components/SwitchField';
|
|
|
|
|
import { TextTip } from '@/portainer/components/Tip/TextTip';
|
|
|
|
|
|
|
|
|
|
import { OsSelector } from './OsSelector';
|
|
|
|
|
import { EdgeProperties } from './types';
|
|
|
|
@ -27,9 +28,10 @@ export function EdgePropertiesForm({
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{!hideIdGetter && (
|
|
|
|
|
<>
|
|
|
|
|
<FormControl
|
|
|
|
|
label="Edge ID Generator"
|
|
|
|
|
tooltip="A bash script one liner that will generate the edge id"
|
|
|
|
|
tooltip="A bash script one liner that will generate the edge id and will be assigned to the PORTAINER_EDGE_ID environment variable"
|
|
|
|
|
inputId="edge-id-generator-input"
|
|
|
|
|
>
|
|
|
|
|
<Input
|
|
|
|
@ -40,6 +42,12 @@ export function EdgePropertiesForm({
|
|
|
|
|
onChange={(e) => setFieldValue(e.target.name, e.target.value)}
|
|
|
|
|
/>
|
|
|
|
|
</FormControl>
|
|
|
|
|
|
|
|
|
|
<TextTip color="blue">
|
|
|
|
|
<code>PORTAINER_EDGE_ID</code> environment variable is required to
|
|
|
|
|
successfully connect the edge agent to Portainer
|
|
|
|
|
</TextTip>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div className="form-group">
|
|
|
|
|