Skip to content

Commit 019b4eb

Browse files
authored
fix(console): should use spec.features.containerRuntime (#1554)
1 parent cfbcf43 commit 019b4eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterDetailBasicInfoPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class ClusterDetailBasicInfoPanel extends React.Component<RootProps, {}>
9191
{clusterInfo.status.version}
9292
</FormPanel.Item>
9393
<FormPanel.Item label={t('运行时组件')} text>
94-
{clusterInfo?.spec?.features?.enableContainerRuntime ?? ContainerRuntimeEnum.DOCKER}
94+
{clusterInfo?.spec?.features?.containerRuntime ?? ContainerRuntimeEnum.DOCKER}
9595
</FormPanel.Item>
9696
{clusterInfo.spec.networkDevice && (
9797
<FormPanel.Item label={t('网卡名称')} text>

web/console/src/modules/cluster/components/resource/clusterInfomation/ClusterPlugInfoPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const ClusterPlugInfoPanel: React.FC<RootProps> = ({ cluster, actions, ro
3232
const { promethus = null, logAgent = null } = cluster?.selection?.spec ?? {};
3333
const clusterId = cluster?.selection?.metadata?.name ?? '';
3434

35-
const isContainerd = cluster?.selection?.spec?.features?.enableContainerRuntime === ContainerRuntimeEnum.CONTAINERD;
35+
const isContainerd = cluster?.selection?.spec?.features?.containerRuntime === ContainerRuntimeEnum.CONTAINERD;
3636

3737
const open = (type: PlugType) => () => {
3838
switch (type) {

web/console/src/modules/common/models/Cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ interface ClusterSpec {
5757
features?: {
5858
ipvs: boolean;
5959
public: boolean;
60-
enableContainerRuntime?: ContainerRuntimeEnum;
60+
containerRuntime?: ContainerRuntimeEnum;
6161
};
6262

6363
/** 集群类型 */

0 commit comments

Comments
 (0)