Back to

Package strict

Latest Go to latest

The latest major version is .

Published: Sep 16, 2020 | License: Apache-2.0 | Module:


func VerifyUnmarshalStrict

func VerifyUnmarshalStrict(bytes []byte, gvk schema.GroupVersionKind) error

VerifyUnmarshalStrict takes a YAML byte slice and a GroupVersionKind and verifies if the YAML schema is known and if it unmarshals with strict mode.

TODO(neolit123): The returned error here is currently ignored everywhere and a klog warning is thrown instead. We don't want to turn this into an actual error yet. Eventually this can be controlled with an optional CLI flag.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier