From 01ba9d0a9ac971ce379eb903f18e03f2007b3bb2 Mon Sep 17 00:00:00 2001 From: RyanSwanson Date: Thu, 7 Nov 2024 11:08:31 -0700 Subject: [PATCH] adds sleep mode feature --- pkg/licenseapi/features.go | 2 ++ pkg/licenseapi/license_new.go | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/pkg/licenseapi/features.go b/pkg/licenseapi/features.go index 2a78899..6a9e7fc 100644 --- a/pkg/licenseapi/features.go +++ b/pkg/licenseapi/features.go @@ -25,6 +25,7 @@ const ( VirtualClusterProDistroIntegrationsKubeVirt FeatureName = "vcp-distro-integrations-kube-virt" VirtualClusterProDistroExternalDatabase FeatureName = "vcp-distro-external-database" VirtualClusterProDistroDatabaseConnector FeatureName = "connector-external-database" + VirtualClusterProDistroSleepMode FeatureName = "vcp-distro-sleep-mode" // Spaces & Clusters ConnectedClusters FeatureName = "connected-clusters" @@ -89,5 +90,6 @@ func GetVClusterFeatures() []FeatureName { VirtualClusterProDistroIntegrationsExternalSecrets, VirtualClusterProDistroExternalDatabase, VirtualClusterProDistroDatabaseConnector, + VirtualClusterSleepMode, } } diff --git a/pkg/licenseapi/license_new.go b/pkg/licenseapi/license_new.go index a06ee9d..57427e2 100644 --- a/pkg/licenseapi/license_new.go +++ b/pkg/licenseapi/license_new.go @@ -150,6 +150,11 @@ func New(product ProductName) *License { Name: string(VirtualClusterProDistroDatabaseConnector), Status: virtualClusterStatus, }, + { + DisplayName: "SleepMode", + Name: string(VirtualClusterProDistroSleepMode), + Status: virtualClusterStatus, + }, }, }, { @@ -327,6 +332,10 @@ func New(product ProductName) *License { }, }, }, + { + DisplayName: "vCluster Sleep Mode", + Name: string(VirtualClusterSleepMode), + }, }, } }