"use client"; import React, { useState } from "react"; import styles from "./styles.module.css"; import TextField from "@/app/components/fields/textfield"; import CustomCheckbox from "@/app/components/checkbox/CheckBox"; import SelectField from "@/app/components/select/SelectField"; import RadioButton from "@/app/components/radio-button/RadioButton"; const ProjectDetails = ({ register, handleSubmit, errors, onSubmit, triggerAlert, disableScaling, disableReadiness, disableLiveness, setDisableScaling, setDisableReadiness, setDisableLiveness, setTriggerAlert, minPods, maxPods, readinessPath, readinessPort, livenessPort, livenessPath, setIsEnableIngress, isEnableIngress, ...props }) => { return (

Project Details

Name

Version

Image (Optional)

Port

Ingress

setIsEnableIngress(e.target.value === "true") } /> setIsEnableIngress(e.target.value === "true") } />
{isEnableIngress && ( <>

Sub Domain

Sub Domain

Allowed Ips (Optional)

)}

Resource

CPU Request (MB)

CPU Limit (MB)

Memory Request (MB)

Memory Limit (MB)

Auto Scaling

setDisableScaling(!disableScaling)} />

Minimum pods

Maximum pods

Readiness

setDisableReadiness(!disableReadiness)} />

Readiness Path

Readiness Port

Liveness

setDisableLiveness(!disableLiveness)} />

Liveness Path

Liveness Port

); }; export default ProjectDetails;