Skip to content

Commit abb6686

Browse files
authored
Added bucket naming rules to Add Bucket help text (#2171)
1 parent dd2fffd commit abb6686

File tree

1 file changed

+82
-1
lines changed
  • portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket

1 file changed

+82
-1
lines changed

portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket/AddBucket.tsx

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import React, { Fragment, useEffect } from "react";
1818
import Grid from "@mui/material/Grid";
19-
import { Button, LinearProgress } from "@mui/material";
19+
import { Button, LinearProgress, Box } from "@mui/material";
2020
import { Theme } from "@mui/material/styles";
2121
import createStyles from "@mui/styles/createStyles";
2222
import withStyles from "@mui/styles/withStyles";
@@ -186,6 +186,87 @@ const AddBucket = ({ classes }: IsetProps) => {
186186
<br />
187187
<b>Retention</b> imposes rules to prevent object deletion for
188188
a period of time.
189+
<br />
190+
<br />
191+
<b>Bucket Naming Rules</b>
192+
<Box
193+
sx={{
194+
display: "flex",
195+
flexFlow: "column",
196+
fontSize: "14px",
197+
flex: "2",
198+
"& .step-number": {
199+
color: "#ffffff",
200+
height: "25px",
201+
width: "25px",
202+
background: "#081C42",
203+
marginRight: "10px",
204+
textAlign: "center",
205+
fontWeight: 600,
206+
borderRadius: "50%",
207+
},
208+
209+
"& .step-row": {
210+
fontSize: "14px",
211+
display: "flex",
212+
marginTop: "15px",
213+
marginBottom: "2px",
214+
215+
"&.step-text": {
216+
fontWeight: 400,
217+
},
218+
"&:before": {
219+
content: "' '",
220+
height: "7px",
221+
width: "7px",
222+
backgroundColor: "#2781B0",
223+
marginRight: "10px",
224+
marginTop: "7px",
225+
flexShrink: 0,
226+
},
227+
},
228+
}}
229+
>
230+
<Box className="step-row">
231+
<div className="step-text">
232+
Bucket names must be between 3 (min) and 63 (max)
233+
characters long.
234+
</div>
235+
</Box>
236+
<Box className="step-row">
237+
<div className="step-text">
238+
Bucket names can consist only of lowercase letters,
239+
numbers, dots (.), and hyphens (-).
240+
</div>
241+
</Box>
242+
<Box className="step-row">
243+
<div className="step-text">
244+
Bucket names must not contain two adjacent periods.
245+
</div>
246+
</Box>
247+
<Box className="step-row">
248+
<div className="step-text">
249+
Bucket names must not be formatted as an IP address (for
250+
example, 192.168.5.4).
251+
</div>
252+
</Box>
253+
<Box className="step-row">
254+
<div className="step-text">
255+
Bucket names must not start with the prefix xn--.
256+
</div>
257+
</Box>
258+
<Box className="step-row">
259+
<div className="step-text">
260+
Bucket names must not end with the suffix -s3alias. This
261+
suffix is reserved for access point alias names.
262+
</div>
263+
</Box>
264+
<Box className="step-row">
265+
<div className="step-text">
266+
Bucket names must be unique within a partition.
267+
</div>
268+
</Box>
269+
</Box>
189270
</Fragment>
190271
}
191272
/>

0 commit comments

Comments
 (0)