fix: update onceMaxRequest field

This commit is contained in:
jialin
2026-05-28 15:51:51 +08:00
committed by jialin
parent ef61134b8b
commit b590aa746b
10 changed files with 44 additions and 42 deletions
@@ -25,7 +25,6 @@ import {
useState
} from 'react';
import { FormData as PublicKeyFormData } from '../../public-keys/config/types';
import useCreateSshkey from '../../public-keys/services/use-create-sshkey';
import useQuerySshkeys from '../../public-keys/services/use-query-sshkeys';
import { DefaultImagePullPolicy } from '../../templates/config';
import TemplateBasicForm, {
@@ -109,7 +108,11 @@ const requiredFields = {
},
[TABKeysMap.STORAGE]: {
sort: 4,
fields: ['spec.volume.persistent.name', 'spec.volume.ephemeral.capacity']
fields: [
'spec.volume.persistent.name',
'spec.volume.ephemeral.capacity',
'spec.sshPublicKeys'
]
}
};
@@ -132,7 +135,6 @@ const GPUServiceInstanceForm: React.FC<InstanceFormProps> = forwardRef(
realAction === PageAction.CREATE ? PageAction.CREATE : action;
const sshEnabled = Form.useWatch('enable_ssh', form);
const { sshkeyOptions, fetchData: fetchSSHData } = useQuerySshkeys();
const { fetchData: createSshkey } = useCreateSshkey();
const [sshOverlayOpen, setSshOverlayOpen] = useState(false);
const { getScrollElementScrollableHeight } = useWrapperContext();
const {