Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7bd5135

Browse files
AdrinlolNikolayS
authored andcommitted
feat(ui): Add info about choosing a network subnet for DLE deployment (https://gitlab.com/postgres-ai/platform/-/issues/244)
1 parent 2bfd2a1 commit 7bd5135

File tree

4 files changed

+275
-121
lines changed

4 files changed

+275
-121
lines changed

‎ui/packages/platform/src/components/DbLabInstanceForm/DbLabFormSteps/AnsibleInstance.tsx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { getCloudImages } from 'api/cloud/getCloudImages'
1111

1212
import {
1313
getGcpAccountContents,
14+
getNetworkSubnet,
1415
getPlaybookCommandWithoutDocker,
1516
} from 'components/DbLabInstanceForm/utils'
1617
import {
@@ -53,6 +54,12 @@ export const formStyles = makeStyles({
5354
fontWeight: 600,
5455
margin: 0,
5556
},
57+
containerMargin: {
58+
margin: '20px 0',
59+
},
60+
smallMarginTop: {
61+
marginBottom: '10px',
62+
}
5663
})
5764

5865
export const InstanceDocumentation = ({
@@ -232,6 +239,7 @@ export const AnsibleInstance = ({
232239
orgKey,
233240
)}
234241
/>
242+
{getNetworkSubnet(state.provider, classes)}
235243
<p className={classes.title}>
236244
7. After the code snippet runs successfully, follow the directions
237245
displayed in the resulting output to start using DLE AUI/API/CLI.

‎ui/packages/platform/src/components/DbLabInstanceForm/DbLabFormSteps/DockerInstance.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { getOrgKeys } from 'api/cloud/getOrgKeys'
1010
import { getCloudImages } from 'api/cloud/getCloudImages'
1111

1212
import {
13+
getNetworkSubnet,
1314
getGcpAccountContents,
1415
getPlaybookCommand,
1516
} from 'components/DbLabInstanceForm/utils'
@@ -143,6 +144,7 @@ export const DockerInstance = ({
143144
<SyntaxHighlight
144145
content={getPlaybookCommand(state, cloudImages[0], orgKey)}
145146
/>
147+
{getNetworkSubnet(state.provider, classes)}
146148
<p className={classes.title}>
147149
4. After the code snippet runs successfully, follow the directions
148150
displayed in the resulting output to start using DLE UI/API/CLI.

‎ui/packages/platform/src/components/DbLabInstanceForm/utils/index.ts‎

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /