fix: remove k8s options section and merge into advance

And re-order the configuration inputs. The current input order is:
- namespace
- volume mounts
- registry credentials
- node selector
- system-default-registry
- operator image
- gpu instance static access address
- worker config yaml
This commit is contained in:
Yuxing Deng
2026-06-03 23:17:38 +08:00
committed by jialin
parent 4810ff2dbe
commit 8f0e3a7576
9 changed files with 121 additions and 86 deletions
@@ -7,6 +7,10 @@ import { useIntl } from '@umijs/max';
import { Button, Form } from 'antd';
import React, { forwardRef, useEffect, useImperativeHandle } from 'react';
import styled from 'styled-components';
import {
GpuInstancesStaticAddressForm,
OperatorImageForm
} from '../components/k8s-pod-spec';
import { ProviderType, ProviderValueMap } from '../config';
import {
ClusterFormData as FormData,
@@ -107,6 +111,12 @@ const ClusterAdvanceConfig: React.FC<{
placeholder="docker.io"
></CInput.Input>
</Form.Item>
{provider === ProviderValueMap.Kubernetes && (
<>
<OperatorImageForm />
<GpuInstancesStaticAddressForm />
</>
)}
<Title>
{intl.formatMessage({ id: 'clusters.create.workerConfig' })}
</Title>