Skip to content

Commit 76a2063

Browse files
committed
fix(web): change replicas default value to an empty string and enforce minimum length validation for replicas
1 parent a7639fd commit 76a2063

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/pages/helm-template/helm-template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const HelmTemplate: FC = () => {
4242
name: '',
4343
image: '',
4444
target_port: null,
45-
replicas: null,
45+
replicas: "",
4646
persistance: {},
4747
environment: [
4848
{

web/src/pages/helm-template/helm-template.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const podSchema = zod.object({
6666
name: zod.string().min(1, 'Name is required'),
6767
image: zod.string().min(1, 'Image is required'),
6868
target_port: zod.string().nullable(),
69-
replicas: zod.string().nullable(),
69+
replicas: zod.string().min(1 ,"Replicas is required"),
7070
persistance: persistanceSchema,
7171
environment: zod
7272
.array(environmentSchema)

0 commit comments

Comments
 (0)