From 1b0fccfe060a8194e6cb76da3b640a593f643664 Mon Sep 17 00:00:00 2001 From: Artiom Diomin Date: Mon, 24 Feb 2020 13:07:44 +0200 Subject: [PATCH] Enable Strict mode to decode KubeOne API Signed-off-by: Artiom Diomin --- pkg/apis/kubeone/scheme/scheme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/kubeone/scheme/scheme.go b/pkg/apis/kubeone/scheme/scheme.go index 06aac2693..a947f75ff 100644 --- a/pkg/apis/kubeone/scheme/scheme.go +++ b/pkg/apis/kubeone/scheme/scheme.go @@ -31,7 +31,7 @@ import ( var Scheme = runtime.NewScheme() // Codecs is a CodecFactory object used to provide encoding and decoding for the scheme -var Codecs = serializer.NewCodecFactory(Scheme) +var Codecs = serializer.NewCodecFactory(Scheme, serializer.EnableStrict) func init() { metav1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})