...

Package strict

import "k8s.io/kubernetes/cmd/kubeadm/app/util/config/strict"
Overview
Index

Overview ▾

func VerifyUnmarshalStrict

func VerifyUnmarshalStrict(schemes []*runtime.Scheme, gvk schema.GroupVersionKind, bytes []byte) error

VerifyUnmarshalStrict takes a slice of schems, a JSON/YAML byte slice and a GroupVersionKind and verifies if the schema is known and if the byte slice unmarshals with strict mode.