From 92ec3700e072b2f0eadb7ef71f65c8249d4eba2b Mon Sep 17 00:00:00 2001 From: Fabian Fischer Date: Wed, 2 Feb 2022 16:46:32 +0100 Subject: [PATCH] Add Organization to scheme --- apis/organization/v1/organization_types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/organization/v1/organization_types.go b/apis/organization/v1/organization_types.go index a7be0b72..30381c97 100644 --- a/apis/organization/v1/organization_types.go +++ b/apis/organization/v1/organization_types.go @@ -131,3 +131,7 @@ func (o *Organization) ToNamespace() *corev1.Namespace { ns.Annotations[DisplayNameKey] = o.Spec.DisplayName return ns } + +func init() { + SchemeBuilder.Register(&Organization{}, &OrganizationList{}) +}