Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicy ¶ added in v1.8.0
func GetPolicy(bytes []byte) (policies []kyvernov1.PolicyInterface, validatingAdmissionPolicies []v1alpha1.ValidatingAdmissionPolicy, err error)
GetPolicy extracts policies from YAML bytes
func IsEmptyYamlDocument ¶ added in v1.10.0
IsEmptyYamlDocument checks if a yaml document is empty (contains only comments)
func SplitDocuments ¶
SplitDocuments reads the YAML bytes per-document, unmarshals the TypeMeta information from each document and returns a map between the GroupVersionKind of the document and the document bytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.