From 0aa2a1e89c2e67732702edf988c2892f12379b78 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Tue, 31 Jul 2018 13:36:49 -0400 Subject: [PATCH] Register CRD types in webhook --- webhook/scheme.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webhook/scheme.go b/webhook/scheme.go index 7e3d06e7..e153f115 100644 --- a/webhook/scheme.go +++ b/webhook/scheme.go @@ -17,6 +17,7 @@ limitations under the License. package main import ( + "github.com/jpeeler/podpreset-crd/pkg/apis" admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" @@ -33,4 +34,5 @@ func init() { func addToScheme(scheme *runtime.Scheme) { corev1.AddToScheme(scheme) admissionregistrationv1beta1.AddToScheme(scheme) + apis.AddToScheme(scheme) }