From eae13a54dbdc442a450992f6c4811037ab30daab Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Sat, 21 Sep 2019 07:12:37 -0700 Subject: Add Generated code for CRD Adding generated code for Network and Provider Network CRD. Change-Id: Iff21107807ba1b5d5aafc3a756edc38c70003332 Signed-off-by: Ritu Sood --- pkg/apis/k8s/v1alpha1/register.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkg/apis') diff --git a/pkg/apis/k8s/v1alpha1/register.go b/pkg/apis/k8s/v1alpha1/register.go index b65f347..81d8db8 100644 --- a/pkg/apis/k8s/v1alpha1/register.go +++ b/pkg/apis/k8s/v1alpha1/register.go @@ -16,4 +16,13 @@ var ( // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} + + // AddToScheme is a global function variable that registers this API + AddToScheme = SchemeBuilder.AddToScheme ) + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + -- cgit 1.2.3-korg