mirror of
https://github.com/crazy-max/diun.git
synced 2024-12-22 19:38:28 +00:00
1ac2dea65d
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.29.3 to 0.32.0. - [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md) - [Commits](https://github.com/kubernetes/client-go/compare/v0.29.3...v0.32.0) --- updated-dependencies: - dependency-name: k8s.io/client-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
32 lines
962 B
Go
32 lines
962 B
Go
// This file contains changes that are only compatible with go 1.10 and onwards.
|
|
|
|
//go:build go1.10
|
|
// +build go1.10
|
|
|
|
/*
|
|
Copyright 2021 The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
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
|
|
}
|