diff --git a/pkg/harvester/config/labels-annotations.js b/pkg/harvester/config/labels-annotations.js index 34eff840..94ea07b5 100644 --- a/pkg/harvester/config/labels-annotations.js +++ b/pkg/harvester/config/labels-annotations.js @@ -50,6 +50,7 @@ export const HCI = { STORAGE_CLASS: 'harvesterhci.io/storageClassName', STORAGE_NETWORK: 'storage-network.settings.harvesterhci.io', ADDON_EXPERIMENTAL: 'addon.harvesterhci.io/experimental', + ADDON_DISPLAYNAME: 'addon.harvesterhci.io/displayName', VOLUME_ERROR: 'longhorn.io/volume-scheduling-error', VOLUME_FOR_VM: 'harvesterhci.io/volumeForVirtualMachine', KVM_AMD_CPU: 'cpu-feature.node.kubevirt.io/svm', diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 912dea0d..9f451df8 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1563,6 +1563,7 @@ harvester: '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. + 'descheduler': 'The virtual machine auto balance optimizes workload scheduling by evicting pods that are not optimally placed according to administrator-defined policies.' vmImport: titles: basic: Basic diff --git a/pkg/harvester/models/harvesterhci.io.addon.js b/pkg/harvester/models/harvesterhci.io.addon.js index cbaf29cb..72766845 100644 --- a/pkg/harvester/models/harvesterhci.io.addon.js +++ b/pkg/harvester/models/harvesterhci.io.addon.js @@ -113,8 +113,9 @@ export default class HciAddonConfig extends HarvesterResource { get displayName() { const isExperimental = this.metadata?.labels?.[HCI_ANNOTATIONS.ADDON_EXPERIMENTAL] === 'true'; + const name = this.metadata?.labels?.[HCI_ANNOTATIONS.ADDON_DISPLAYNAME] || this.metadata.name; - return isExperimental ? `${ this.metadata.name } (${ this.t('generic.experimental') })` : this.metadata.name; + return isExperimental ? `${ name } (${ this.t('generic.experimental') })` : name; } get customValidationRules() {