Files
virtual-kubelet/vendor/sigs.k8s.io/yaml/yaml_go110.go
Paulo Pires 5a0093ce31 vkubelet: set kubelet version to build version (#446)
* deps: bump to Kubernetes 1.13.1

Signed-off-by: Paulo Pires <pjpires@gmail.com>

* version: new VK version

Signed-off-by: Paulo Pires <pjpires@gmail.com>
2018-12-18 17:08:23 -08:00

15 lines
373 B
Go

// This file contains changes that are only compatible with go 1.10 and onwards.
// +build go1.10
package yaml
import "encoding/json"
// DisallowUnknownFields configures the JSON decoder to error out if unknown
// fields come along, instead of dropping them by default.
func DisallowUnknownFields(d *json.Decoder) *json.Decoder {
d.DisallowUnknownFields()
return d
}