diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-14 15:17:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 15:17:21 +0100 |
commit | 7ab99227e63bfec734bf2372e80ef5a93dc2ef54 (patch) | |
tree | 4d5cc90840d8a13717891aecadf170533830d117 /vendor/sigs.k8s.io/yaml/yaml_go110.go | |
parent | 9686216f9d44e1d6b4fa60a5c0866746d1afa60b (diff) | |
parent | 72ab66d88622eadcf7c603aa5e6c0751d72214dc (diff) | |
download | podman-7ab99227e63bfec734bf2372e80ef5a93dc2ef54.tar.gz podman-7ab99227e63bfec734bf2372e80ef5a93dc2ef54.tar.bz2 podman-7ab99227e63bfec734bf2372e80ef5a93dc2ef54.zip |
Merge pull request #12825 from elezar/update-cdi
Update use of CDI API
Diffstat (limited to 'vendor/sigs.k8s.io/yaml/yaml_go110.go')
-rw-r--r-- | vendor/sigs.k8s.io/yaml/yaml_go110.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/sigs.k8s.io/yaml/yaml_go110.go b/vendor/sigs.k8s.io/yaml/yaml_go110.go new file mode 100644 index 000000000..ab3e06a22 --- /dev/null +++ b/vendor/sigs.k8s.io/yaml/yaml_go110.go @@ -0,0 +1,14 @@ +// 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 +} |