From c4950ae5e2c5586b6631145d77d429c0d842066a Mon Sep 17 00:00:00 2001 From: Fabian Kramm Date: Thu, 23 Jan 2025 16:04:44 +0100 Subject: [PATCH] feat: add vNode runtime beta --- hack/gen-features/main.go | 1 + pkg/licenseapi/features.go | 3 +++ pkg/licenseapi/features.yaml | 2 ++ pkg/licenseapi/license_new.go | 4 ++++ 4 files changed, 10 insertions(+) diff --git a/hack/gen-features/main.go b/hack/gen-features/main.go index e2a26fd..b12524a 100644 --- a/hack/gen-features/main.go +++ b/hack/gen-features/main.go @@ -75,6 +75,7 @@ var ( "vcp": "VirtualClusterPro", "vclusters": "VirtualCluster", "vcluster": "VirtualCluster", + "vnode": "VNode", "ui": "UI", "sso": "SSO", "oidc": "OIDC", diff --git a/pkg/licenseapi/features.go b/pkg/licenseapi/features.go index 56495ed..7079143 100644 --- a/pkg/licenseapi/features.go +++ b/pkg/licenseapi/features.go @@ -90,6 +90,8 @@ const ( AdvancedUICustomizations FeatureName = "advanced-ui-customizations" // Advanced UI Customizations + VNodeRuntime FeatureName = "vnode-runtime" // vNode Runtime + ) func GetFeatures() []FeatureName { @@ -137,5 +139,6 @@ func GetFeatures() []FeatureName { AirGappedMode, CustomBranding, AdvancedUICustomizations, + VNodeRuntime, } } diff --git a/pkg/licenseapi/features.yaml b/pkg/licenseapi/features.yaml index b69a252..24b197b 100644 --- a/pkg/licenseapi/features.yaml +++ b/pkg/licenseapi/features.yaml @@ -85,3 +85,5 @@ features: # array of features displayName: "Custom Branding" - name: "advanced-ui-customizations" displayName: "Advanced UI Customizations" +- name: "vnode-runtime" + displayName: "vNode Runtime" diff --git a/pkg/licenseapi/license_new.go b/pkg/licenseapi/license_new.go index e365d9a..b0e5178 100644 --- a/pkg/licenseapi/license_new.go +++ b/pkg/licenseapi/license_new.go @@ -197,6 +197,10 @@ func New() *License { DisplayName: "Advanced UI Customizations", Name: "advanced-ui-customizations", }, + { + DisplayName: "vNode Runtime", + Name: "vnode-runtime", + }, }, }, },