Skip to content

Commit

Permalink
Allow unknown fields. (knative-extensions#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nghia Tran committed May 28, 2020
1 parent 75cfdf2 commit 49712c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ 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.
"knative.dev/pkg/injection/sharedmain"
)

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)
}

0 comments on commit 49712c4

Please sign in to comment.