From e4205a83d79b046612b9a891d0874dc387b30236 Mon Sep 17 00:00:00 2001 From: Jeremy Facchetti Date: Mon, 16 Sep 2024 15:39:46 +0200 Subject: [PATCH] added the integration feature flags (#14) * added the integration feature flags * linting * fix wrong conflict resolution --- pkg/licenseapi/features.go | 4 ++++ pkg/licenseapi/license_new.go | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/pkg/licenseapi/features.go b/pkg/licenseapi/features.go index 00b835b..3709ed1 100644 --- a/pkg/licenseapi/features.go +++ b/pkg/licenseapi/features.go @@ -21,6 +21,8 @@ const ( VirtualClusterProDistroTranslatePatches FeatureName = "vcp-distro-translate-patches" VirtualClusterEnterprisePlugins FeatureName = "vcluster-enterprise-plugins" VirtualClusterProDistroFips FeatureName = "vcp-distro-fips" + VirtualClusterProDistroIntegrationsExternalSecrets FeatureName = "vcp-distro-integrations-external-secrets" + VirtualClusterProDistroIntegrationsKubeVirt FeatureName = "vcp-distro-integrations-kube-virt" // Spaces & Clusters ConnectedClusters FeatureName = "connected-clusters" @@ -81,5 +83,7 @@ func GetVClusterFeatures() []FeatureName { VirtualClusterProDistroTranslatePatches, VirtualClusterEnterprisePlugins, VirtualClusterProDistroFips, + VirtualClusterProDistroIntegrationsKubeVirt, + VirtualClusterProDistroIntegrationsExternalSecrets, } } diff --git a/pkg/licenseapi/license_new.go b/pkg/licenseapi/license_new.go index 54a6c26..da22ccd 100644 --- a/pkg/licenseapi/license_new.go +++ b/pkg/licenseapi/license_new.go @@ -126,6 +126,16 @@ func New(product ProductName) *License { Name: string(VirtualClusterProDistroTranslatePatches), Status: virtualClusterStatus, }, + { + DisplayName: "KubeVirt Integration", + Name: string(VirtualClusterProDistroIntegrationsKubeVirt), + Status: virtualClusterStatus, + }, + { + DisplayName: "External Secrets Integration", + Name: string(VirtualClusterProDistroIntegrationsExternalSecrets), + Status: virtualClusterStatus, + }, { DisplayName: "FIPS", Name: string(VirtualClusterProDistroFips),