feat(app/wizard): info panel telling to add env only once per swarm cluster (#11954)

pull/12175/head
LP B 2024-09-02 14:22:07 +02:00 committed by GitHub
parent e4e55157e8
commit 8fae7f8438
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import EdgeAgentAsyncIcon from '@/react/edge/components/edge-agent-async.svg?c';
import { BoxSelector, type BoxSelectorOption } from '@@/BoxSelector';
import { BadgeIcon } from '@@/BadgeIcon';
import { Alert } from '@@/Alert';
import { AnalyticsStateKey } from '../types';
import { EdgeAgentTab } from '../shared/EdgeAgentTab';
@ -70,6 +71,17 @@ export function WizardDocker({ onCreate, isDockerStandalone }: Props) {
return (
<div className="form-horizontal">
{!isDockerStandalone && (
<Alert color="warn" className="col-sm-12 mb-2">
<div>
Only do this <b>once</b> for your environment, regardless of how
many nodes are in the cluster. You do <b>not</b> need to add each
node as an individual environment in Portainer. Adding just one node
(we recommend the manager node) will allow Portainer to manage the
entire cluster.
</div>
</Alert>
)}
<BoxSelector
onChange={(v) => setCreationType(v)}
options={options}