utils

package
v1.7.2-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPatchNew

func ApplyPatchNew(resource, patch []byte) ([]byte, error)

ApplyPatchNew patches given resource with given joined patches

func ApplyPatches

func ApplyPatches(resource []byte, patches [][]byte) ([]byte, error)

ApplyPatches patches given resource with given patches and returns patched document return original resource if any error occurs

func CombineErrors added in v1.7.0

func CombineErrors(errors []error) error

func ConvertToUnstructured

func ConvertToUnstructured(data []byte) (*unstructured.Unstructured, error)

ConvertToUnstructured converts the resource to unstructured format

func GetAnchorsFromMap

func GetAnchorsFromMap(anchorsMap map[string]interface{}) map[string]interface{}

GetAnchorsFromMap gets the conditional anchor map

func JsonPointerToJMESPath added in v1.4.2

func JsonPointerToJMESPath(jsonPointer string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL