From 49712c4a5511eb2079523cb97f7bda4ff44d5a07 Mon Sep 17 00:00:00 2001 From: Nghia Tran Date: Wed, 27 May 2020 16:42:59 -0700 Subject: [PATCH] Allow unknown fields. (#114) --- cmd/controller/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/controller/main.go b/cmd/controller/main.go index 7d47f5a385..89d1d31a2d 100644 --- a/cmd/controller/main.go +++ b/cmd/controller/main.go @@ -17,6 +17,7 @@ limitations under the License. package main import ( + "istio.io/api/networking/v1alpha3" "knative.dev/net-istio/pkg/reconciler/ingress" // This defines the shared main for injected controllers. @@ -24,5 +25,10 @@ import ( ) func main() { + // Allow unknown fields in Istio API client. This is so that we are more resilience + // in cases user clusers have malformed resources. + v1alpha3.VirtualServiceUnmarshaler.AllowUnknownFields = true + v1alpha3.GatewayUnmarshaler.AllowUnknownFields = true + sharedmain.Main("istiocontroller", ingress.NewController) }