fix(edge/aeec): add explanation about PORTAINER_EDGE_ID [EE-3056] (#6874)

pull/6890/head
Chaim Lev-Ari 2022-05-05 10:02:34 +03:00 committed by GitHub
parent bf59ef50a3
commit d4c2ad4a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 13 deletions

View File

@ -2,6 +2,7 @@ import { FormControl } from '@/portainer/components/form-components/FormControl'
import { Input } from '@/portainer/components/form-components/Input'; import { Input } from '@/portainer/components/form-components/Input';
import { FormSectionTitle } from '@/portainer/components/form-components/FormSectionTitle'; import { FormSectionTitle } from '@/portainer/components/form-components/FormSectionTitle';
import { SwitchField } from '@/portainer/components/form-components/SwitchField'; import { SwitchField } from '@/portainer/components/form-components/SwitchField';
import { TextTip } from '@/portainer/components/Tip/TextTip';
import { OsSelector } from './OsSelector'; import { OsSelector } from './OsSelector';
import { EdgeProperties } from './types'; import { EdgeProperties } from './types';
@ -27,9 +28,10 @@ export function EdgePropertiesForm({
/> />
{!hideIdGetter && ( {!hideIdGetter && (
<>
<FormControl <FormControl
label="Edge ID Generator" 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" inputId="edge-id-generator-input"
> >
<Input <Input
@ -40,6 +42,12 @@ export function EdgePropertiesForm({
onChange={(e) => setFieldValue(e.target.name, e.target.value)} onChange={(e) => setFieldValue(e.target.name, e.target.value)}
/> />
</FormControl> </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"> <div className="form-group">