From 6c8ec64c5099b3d177c0e0035679c82477edd345 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Thu, 31 Oct 2024 19:30:43 +0800 Subject: [PATCH] hide yaml tab in vm, secret, host detail page --- pkg/harvester/config/harvester-cluster.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/harvester/config/harvester-cluster.js b/pkg/harvester/config/harvester-cluster.js index 739baaa0..249c75d0 100644 --- a/pkg/harvester/config/harvester-cluster.js +++ b/pkg/harvester/config/harvester-cluster.js @@ -138,7 +138,8 @@ export function init($plugin, store) { }, resource: NODE, resourceDetail: HCI.HOST, - resourceEdit: HCI.HOST + resourceEdit: HCI.HOST, + canYaml: false, }); configureType(HCI.HOST, { isCreatable: false, isEditable: true }); @@ -176,6 +177,7 @@ export function init($plugin, store) { }); basicType([HCI.VM]); + configureType(HCI.VM, { canYaml: false }); virtualType({ labelKey: 'harvester.virtualMachine.label', group: 'root', @@ -636,6 +638,7 @@ export function init($plugin, store) { resource: SECRET, resourceDetail: HCI.SECRET, resourceEdit: HCI.SECRET, + canYaml: false, notFilterNamespace: ['cattle-monitoring-system', 'cattle-logging-system'] });