package
0.11.0-alpha.1
Repository: https://github.com/kcl-lang/krm-kcl.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

RemoveMetadataAndStatus removes the metadata and status fields from the object to prepare for semantic equality check.
GetKubeConfigPath returns the path to the Kubernetes configuration file.
HasDrifted checks if the current object has drifted from the existing object.
JsonByteToRawExtension converts a JSON byte array to a runtime.RawExtension object.
JsonByteToUnstructured converts a JSON byte array to an unstructured.Unstructured object.
NormalizeMap converts map[interface{}]interface{} to map[string]interface{}.
NormalizeServerSideFields removes the metadata and status fields from the object to prepare for semantic equality check.
ObjToRawExtension converts an arbitrary object to a runtime.RawExtension object using JSON encoding.
ParseKubeObject parses a single YAML object from a byte slice into a KubeObject.
ParseKubeObjects parses a YAML byte slice into a slice of KubeObjects.
ParseResourceList takes a byte slice of a YAML ResourceList and parses it into a ResourceList structure.
UnstructuredID returns the object ID in the format <kind>/<namespace>/<name>.
UnstructuredToObjMetadata extracts the identifying information from an Unstructured object and returns it as ObjMetadata object.
UnstructuredToRawExtension converts an unstructured.Unstructured object to a runtime.RawExtension object.
YamlByteToUnstructured converts a Yaml byte array to an unstructured.Unstructured object.
YamlByteToUnstructured returns the manifests list from the YAML stream data.

# Structs

KubeObject represents a Kubernetes object with associated functions.
ObjMetadata contains metadata information for a Kubernetes object.
ResourceList represents a list of Kubernetes objects typically used for configuration purposes.

# Type aliases

KubeObjects defines a slice of KubeObject types with convenience methods.