mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
5ea99fdd5b
This initial version of yamlgen generates deploy/scc.yaml based on the deployment artifact that is provided by the new api/deploy/ocp package. Signed-off-by: Niels de Vos <ndevos@redhat.com>
15 lines
373 B
Go
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
|
|
}
|