feat(cluster): add default container registry field to advanced config

Surface the top-level system_default_container_registry as a dedicated
input (both Docker and K8s), coerce blank to null, and drop its
redundant worker_config YAML hint.
This commit is contained in:
Yuxing Deng
2026-05-29 23:11:46 +08:00
committed by jialin
parent 1b6466ae78
commit f62e0ba372
8 changed files with 46 additions and 5 deletions
@@ -88,6 +88,24 @@ const ClusterAdvanceConfig: React.FC<{
>
<CInput.TextArea required={false} trim={false}></CInput.TextArea>
</Form.Item>
{/* Default container registry used to resolve images for this cluster.
A top-level cluster field shared by both Docker and Kubernetes
providers (the backend hoists any legacy worker_config value onto
this column). */}
<Form.Item<FormData>
name="system_default_container_registry"
style={{ marginBottom: 16 }}
>
<CInput.Input
label={intl.formatMessage({
id: 'clusters.systemDefaultContainerRegistry.title'
})}
description={intl.formatMessage({
id: 'clusters.systemDefaultContainerRegistry.tip'
})}
placeholder="docker.io"
></CInput.Input>
</Form.Item>
<Title>
{intl.formatMessage({ id: 'clusters.create.workerConfig' })}
</Title>