Skip to content

Commit cd01017

Browse files
authored
API/Ingress IP fields lack character limit (#3342)
Signed-off-by: Elay Aharoni <elayaha@gmail.com>
1 parent 7b9ba48 commit cd01017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export const VirtualIPControlGroup = ({
213213
name="apiVips.0.ip"
214214
helperText={ipHelperText}
215215
isRequired
216+
maxLength={45}
216217
labelInfo={isDualStack ? 'Primary' : undefined}
217218
onChange={(e) =>
218219
setVipValueAtIndex('apiVips', 0, e as React.ChangeEvent<HTMLInputElement>)
@@ -229,6 +230,7 @@ export const VirtualIPControlGroup = ({
229230
}
230231
name="apiVips.1.ip"
231232
helperText={ipHelperText}
233+
maxLength={45}
232234
labelInfo={'Secondary'}
233235
onChange={(e) =>
234236
setVipValueAtIndex('apiVips', 1, e as React.ChangeEvent<HTMLInputElement>)
@@ -246,6 +248,7 @@ export const VirtualIPControlGroup = ({
246248
}
247249
helperText={ipHelperText}
248250
isRequired
251+
maxLength={45}
249252
labelInfo={isDualStack ? 'Primary' : undefined}
250253
onChange={(e) =>
251254
setVipValueAtIndex('ingressVips', 0, e as React.ChangeEvent<HTMLInputElement>)
@@ -262,6 +265,7 @@ export const VirtualIPControlGroup = ({
262265
</>
263266
}
264267
helperText={ipHelperText}
268+
maxLength={45}
265269
labelInfo={'Secondary'}
266270
onChange={(e) =>
267271
setVipValueAtIndex(

0 commit comments

Comments
 (0)