From 5ecb1a3db0cb4ed00db6eae34e996357130d97ff Mon Sep 17 00:00:00 2001 From: Pooneh Mortazavi Date: Tue, 9 Apr 2019 09:21:41 -0700 Subject: [PATCH] Remove dependency to util/runtime from APIS package --- pkg/apis/stable/v1alpha1/register.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/apis/stable/v1alpha1/register.go b/pkg/apis/stable/v1alpha1/register.go index d62bc80465..3661b434af 100644 --- a/pkg/apis/stable/v1alpha1/register.go +++ b/pkg/apis/stable/v1alpha1/register.go @@ -16,7 +16,6 @@ package v1alpha1 import ( "agones.dev/agones/pkg/apis/stable" - "agones.dev/agones/pkg/util/runtime" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8sruntime "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" @@ -44,7 +43,9 @@ var ( ) func init() { - runtime.Must(AddToScheme(scheme.Scheme)) + if err := AddToScheme(scheme.Scheme); err != nil { + panic(err) + } } // Adds the list of known types to api.Scheme.