Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/harvester-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export default function(plugin: IPlugin) {

plugin.addProduct(require('./config/harvester-manager'));

if (plugin.environment.isPrime) {
plugin.register('l10n-global', 'Harvester', 'SUSE Virtualization');
plugin.register('l10n', 'en-us', () => {
return { product: { harvesterManager: 'SUSE Virtualization' } };
});
}

plugin.addTab(
TabLocation.RESOURCE_CREATE_PAGE,
{
Expand Down
38 changes: 19 additions & 19 deletions pkg/harvester-manager/l10n/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@ harvesterManager:
manage: Manage
tableHeaders:
kubernetesVersion: Kubernetes Version
harvesterVersion: Harvester Version
harvesterVersion: '[[Harvester]] Version'
cluster:
label: Harvester Clusters
none: There are no Harvester Clusters
learnMore: Learn more about Harvester from the <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Web Site</a> or read the <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester Docs</a>
description: Harvester is a modern Hyperconverged infrastructure (HCI) solution built for bare metal servers using enterprise-grade open source technologies including Kubernetes, Kubevirt and Longhorn.
supportMessage: The Harvester UI Extension only supports Harvester v1.3.0 and later versions
label: '[[Harvester]] Clusters'
none: There are no [[Harvester]] Clusters
learnMore: Learn more about [[Harvester]] from the <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">[[Harvester]] Web Site</a> or read the <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">[[Harvester]] Docs</a>
description: '[[Harvester]] is a modern Hyperconverged infrastructure (HCI) solution built for bare metal servers using enterprise-grade open source technologies including Kubernetes, Kubevirt and Longhorn.'
supportMessage: The [[Harvester]] UI Extension only supports [[Harvester]] v1.3.0 and later versions
plugins:
loadError: Error loading harvester plugin
extension:
install:
warning: "The Harvester UI Extension is not installed"
prompt: "UI Integration for Harvester is now provided via the new Harvester UI Extension, which needs to be installed."
warning: "The [[Harvester]] UI Extension is not installed"
prompt: "UI Integration for [[Harvester]] is now provided via the new [[Harvester]] UI Extension, which needs to be installed."
prompt-standard-user: Please contact your system administrator
steps:
repo:
1: Go to the
2: Apps Repositories
3: page and add the <a target="_blank" href="https://github.com/harvester/harvester-ui-extension" rel="noopener noreferrer nofollow">Harvester repository</a>
3: page and add the <a target="_blank" href="https://github.com/harvester/harvester-ui-extension" rel="noopener noreferrer nofollow">[[Harvester]] repository</a>
ui:
1: Go to the
2: Extensions
3: page and install the Harvester Extension
3: page and install the [[Harvester]] Extension
update:
warning: "Your current Harvester UI Extension ({currentVersion}) is not the latest."
prompt: "A new version ({ newVersion }) is available, please click on Update button to install the latest Harvester UI Extension"
warning: "Your current [[Harvester]] UI Extension ({currentVersion}) is not the latest."
prompt: "A new version ({ newVersion }) is available, please click on Update button to install the latest [[Harvester]] UI Extension"
prompt-standard-user: Please contact your system administrator to install the latest version
missingRepo:
warning: "The Harvester UI Extension repository is missing"
prompt: "Please click on Update button to add the Harvester repository and install the latest Harvester UI Extension"
prompt-standard-user: Please contact your system administrator to install the latest Harvester UI Extension
warning: "The [[Harvester]] UI Extension repository is missing"
prompt: "Please click on Update button to add the [[Harvester]] repository and install the latest [[Harvester]] UI Extension"
prompt-standard-user: Please contact your system administrator to install the latest [[Harvester]] UI Extension
missingVersion:
warning: "Could not find a compatible version"
prompt: "Please update Rancher to get the latest compatible version of the Harvester UI extension or try to install it manually"
prompt: "Please update Rancher to get the latest compatible version of the [[Harvester]] UI extension or try to install it manually"
prompt-standard-user: Please contact your system administrator
error:
warning: "Warning, Harvester UI extension automatic installation failed"
prompt: "Please refresh the page and try again or install the Harvester UI extension manually"
prompt-standard-user: Please contact your system administrator to install or update the Harvester extension
warning: "Warning, [[Harvester]] UI extension automatic installation failed"
prompt: "Please refresh the page and try again or install the [[Harvester]] UI extension manually"
prompt-standard-user: Please contact your system administrator to install or update the [[Harvester]] extension
rke:
templateError: Incorrect template format
affinity:
Expand Down
10 changes: 5 additions & 5 deletions pkg/harvester-manager/l10n/zh-hans.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
harvesterManager:
manage: 管理
cluster:
label: Harvester 集群
none: 不存在 Harvester 集群
learnMore: 访问 <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester 网站</a> 或阅读 <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">Harvester 官方文档</a>,以了解更多关于 Harvester 的信息。
description: Harvester 是一个采用企业级开源技术,包括Kubernetes、Kubevirt和Longhorn,为裸金属服务器打造的现代超融合基础设施(HCI)解决方案。
label: '[[Harvester]] 集群'
none: 不存在 [[Harvester]] 集群
learnMore: 访问 <a target="_blank" href="https://harvesterhci.io/" rel="noopener noreferrer nofollow">[[Harvester]] 网站</a> 或阅读 <a target="_blank" href="https://docs.harvesterhci.io/" rel="noopener noreferrer nofollow">[[Harvester]] 官方文档</a>,以了解更多关于 [[Harvester]] 的信息。
description: '[[Harvester]] 是一个采用企业级开源技术,包括Kubernetes、Kubevirt和Longhorn,为裸金属服务器打造的现代超融合基础设施(HCI)解决方案。'
plugins:
loadError: 加载 Harvester 插件时出错
loadError: 加载 [[Harvester]] 插件时出错
rke:
templateError: 模版格式不正确
cpuModel:
Expand Down
19 changes: 16 additions & 3 deletions pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,20 @@

// No custom rows limit; 'Table Rows Per Page' preference will be used.
return null;
}
},

// Return the logo information based on whether is is Harvester or SUSE Virtualization.
logo() {
const isSuseVirtualization = this.$store.getters['i18n/global']('Harvester') === 'SUSE Virtualization';

return !isSuseVirtualization ? {
name: 'harvester.png',
height: 64
} : {
name: 'suse-virtualization.svg',
height: 36
}

Check warning on line 255 in pkg/harvester-manager/list/harvesterhci.io.management.cluster.vue

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
},
},

methods: {
Expand Down Expand Up @@ -455,8 +468,8 @@
<template v-if="harvester.toInstall || harvester.toUpdate || !rows || !rows.length">
<div class="logo">
<BrandImage
file-name="harvester.png"
height="64"
:file-name="logo.name"
:height="logo.height"
/>
</div>
<template v-if="harvester.toInstall || !rows || !rows.length">
Expand Down
1 change: 1 addition & 0 deletions shell/assets/images/pl/dark/suse-virtualization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions shell/assets/images/pl/suse-virtualization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading