feat: configure k8s secret type

This commit is contained in:
Fu Diwei
2025-01-01 19:13:48 +08:00
parent 880c8819b4
commit e2d29b8fa2
13 changed files with 98 additions and 73 deletions

View File

@@ -45,6 +45,10 @@ const DeployNodeFormAliyunCLBFields = () => {
const formRule = createSchemaFieldRule(formSchema);
const formInst = Form.useFormInstance();
const initialValues: Partial<z.infer<typeof formSchema>> = {
listenerPort: 443,
};
const fieldResourceType = Form.useWatch("resourceType", formInst);
return (
@@ -84,7 +88,7 @@ const DeployNodeFormAliyunCLBFields = () => {
label={t("workflow_node.deploy.form.aliyun_clb_listener_port.label")}
rules={[formRule]}
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.deploy.form.aliyun_clb_listener_port.tooltip") }}></span>}
initialValue={443}
initialValue={initialValues.listenerPort}
>
<Input type="number" min={1} max={65535} placeholder={t("workflow_node.deploy.form.aliyun_clb_listener_port.placeholder")} />
</Form.Item>