package
0.45.1
Repository: https://github.com/fluxcd/pkg.git
Documentation: pkg.go.dev

# Functions

AnyInMetadata searches for the specified key-value pairs in labels and annotations, returns true if at least one key-value pair matches.
FmtObjMetadata returns the object ID in the format <kind>/<namespace>/<name>.
FmtUnstructured returns the object ID in the format <kind>/<namespace>/<name>.
FmtUnstructuredList returns a line per object in the format <kind>/<namespace>/<name>.
IsClusterDefinition checks if the given object is a Kubernetes namespace or a custom resource definition.
IsCRD returns true if the given object is a CustomResourceDefinition.
IsKubernetesObject checks if the given object has the minimum required fields to be a Kubernetes object.
IsKustomization checks if the given object is a Kustomize config.
IsNamespace returns true if the given object is a Namespace.
IsSecret returns true if the given object is a Kubernetes Secret.
ObjectsToJSON encodes the given Kubernetes API objects to a YAML multi-doc.
ObjectsToYAML encodes the given Kubernetes API objects to a YAML multi-doc.
ObjectToYAML encodes the given Kubernetes API object to YAML.
ReadObject decodes a YAML or JSON document from the given reader into an unstructured Kubernetes API object.
ReadObjects decodes the YAML or JSON documents from the given reader into unstructured Kubernetes API objects.
SetCommonMetadata adds the specified labels and annotations to all objects.