From 315dcc09c5fa786b10e5680cbb7abded42c3ab86 Mon Sep 17 00:00:00 2001 From: Ricardo Weir Date: Fri, 1 Nov 2024 17:33:20 -0700 Subject: [PATCH 1/2] Add connector external database --- pkg/licenseapi/features.go | 2 ++ pkg/licenseapi/license_new.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/pkg/licenseapi/features.go b/pkg/licenseapi/features.go index b6af0c3..2a78899 100644 --- a/pkg/licenseapi/features.go +++ b/pkg/licenseapi/features.go @@ -24,6 +24,7 @@ const ( VirtualClusterProDistroIntegrationsExternalSecrets FeatureName = "vcp-distro-integrations-external-secrets" VirtualClusterProDistroIntegrationsKubeVirt FeatureName = "vcp-distro-integrations-kube-virt" VirtualClusterProDistroExternalDatabase FeatureName = "vcp-distro-external-database" + VirtualClusterProDistroDatabaseConnector FeatureName = "connector-external-database" // Spaces & Clusters ConnectedClusters FeatureName = "connected-clusters" @@ -87,5 +88,6 @@ func GetVClusterFeatures() []FeatureName { VirtualClusterProDistroIntegrationsKubeVirt, VirtualClusterProDistroIntegrationsExternalSecrets, VirtualClusterProDistroExternalDatabase, + VirtualClusterProDistroDatabaseConnector, } } diff --git a/pkg/licenseapi/license_new.go b/pkg/licenseapi/license_new.go index 3a4a301..a06ee9d 100644 --- a/pkg/licenseapi/license_new.go +++ b/pkg/licenseapi/license_new.go @@ -144,6 +144,10 @@ func New(product ProductName) *License { { DisplayName: "External Database", Name: string(VirtualClusterProDistroExternalDatabase), + }, + { + DisplayName: "Database Connector", + Name: string(VirtualClusterProDistroDatabaseConnector), Status: virtualClusterStatus, }, }, From e2eb8d2a3cee45e1eaf2a7df0709a9b8517bfa64 Mon Sep 17 00:00:00 2001 From: Ricardo Weir Date: Tue, 5 Nov 2024 09:15:59 -0700 Subject: [PATCH 2/2] just gen --- pkg/licenseapi/zz_generated.deepcopy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/licenseapi/zz_generated.deepcopy.go b/pkg/licenseapi/zz_generated.deepcopy.go index 42ecfa4..6089429 100644 --- a/pkg/licenseapi/zz_generated.deepcopy.go +++ b/pkg/licenseapi/zz_generated.deepcopy.go @@ -231,6 +231,11 @@ func (in *InstanceCreateInput) DeepCopyInto(out *InstanceCreateInput) { (*out)[key] = val } } + if in.DebugInstanceID != nil { + in, out := &in.DebugInstanceID, &out.DebugInstanceID + *out = new(string) + **out = **in + } return }