From 50b4cf524890e00d3ee4c5606bcf839fc4bb4853 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 14 Sep 2026 15:46:14 +0800 Subject: [PATCH] feat: add rancher k3k addon UI page (#1137) * feat: add k3k addon UI Signed-off-by: Andy Lee * feat: add rancher-k3k addon UI Signed-off-by: Andy Lee * refactor: copilot review Signed-off-by: Andy Lee * refactor: copilot review Signed-off-by: Andy Lee * refactor: remove k3k edit page Signed-off-by: Andy Lee * refactor: k3k addon description Signed-off-by: Andy Lee --------- Signed-off-by: Andy Lee --- pkg/harvester/dialog/HarvesterEnableK3k.vue | 164 +++++++++++++++++ .../harvesterhci.io.addon/rancher-k3k.vue | 167 ++++++++++++++++++ pkg/harvester/l10n/en-us.yaml | 10 ++ pkg/harvester/list/harvesterhci.io.addon.vue | 2 +- pkg/harvester/models/harvesterhci.io.addon.js | 24 ++- 5 files changed, 360 insertions(+), 7 deletions(-) create mode 100644 pkg/harvester/dialog/HarvesterEnableK3k.vue create mode 100644 pkg/harvester/edit/harvesterhci.io.addon/rancher-k3k.vue diff --git a/pkg/harvester/dialog/HarvesterEnableK3k.vue b/pkg/harvester/dialog/HarvesterEnableK3k.vue new file mode 100644 index 00000000..d7c8f189 --- /dev/null +++ b/pkg/harvester/dialog/HarvesterEnableK3k.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/pkg/harvester/edit/harvesterhci.io.addon/rancher-k3k.vue b/pkg/harvester/edit/harvesterhci.io.addon/rancher-k3k.vue new file mode 100644 index 00000000..8b0d17aa --- /dev/null +++ b/pkg/harvester/edit/harvesterhci.io.addon/rancher-k3k.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 50a46306..785378a8 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1832,6 +1832,8 @@ harvester: 'rancher-logging': rancher-logging is an add-on to collect versatile logs, events, and audits from the Harvester cluster and route them to many kinds of servers based on flows. 'rancher-monitoring': rancher-monitoring is an add-on to collect Harvester cluster and virtual machine metrics, view them on the embedded dashboard, and send alert(s) to remote servers. 'rancher-vcluster': rancher-vcluster deploys a virtual cluster (vcluster) with Rancher installed. + 'k3k': k3k is an add-on to deploy the k3k controller. + 'rancher-k3k': rancher-k3k deploys a k3k virtual cluster with Rancher installed. 'harvester-seeder': harvester-seeder is an add-on that uses IPMI and Redfish to discover hardware information and perform out-of-band operations. 'harvester-system/harvester-seeder': harvester-seeder is an add-on that uses IPMI and Redfish to discover hardware information and perform out-of-band operations. 'harvester-csi-driver-lvm': harvester-csi-driver-lvm is an add-on allowing users to create PVC through the LVM with local devices. @@ -2136,6 +2138,14 @@ harvester: hostname: Hostname rancherVersion: Rancher Version password: Bootstrap Password + rancherK3k: + accessRancher: Access the Rancher Dashboard + hostname: Hostname + version: Rancher Version + password: Bootstrap Password + passwordTooltip: The initial password in Rancher for the first time login. + enable: + title: Enable K3k switchFailed: "{action} {name} failed!" nvidiaDriverToolkit: titles: diff --git a/pkg/harvester/list/harvesterhci.io.addon.vue b/pkg/harvester/list/harvesterhci.io.addon.vue index 09e303aa..fd561343 100644 --- a/pkg/harvester/list/harvesterhci.io.addon.vue +++ b/pkg/harvester/list/harvesterhci.io.addon.vue @@ -72,7 +72,7 @@ export default { />