k8s

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUnstructured added in v0.1.1

func DecodeUnstructured[T any](u *unstructured.Unstructured) (*T, error)

DecodeUnstructured converts an unstructured Kubernetes object into a typed value.

func LoadConfig

func LoadConfig() (*rest.Config, error)

LoadConfig returns a Kubernetes client config using the standard fallback chain: KUBECONFIG env -> ~/.kube/config -> in-cluster.

func MergePatch added in v0.1.1

func MergePatch(payload any) ([]byte, error)

MergePatch marshals a payload as a Kubernetes merge patch document.

func MetadataAnnotationsMergePatch added in v0.1.1

func MetadataAnnotationsMergePatch(annotations map[string]any) ([]byte, error)

MetadataAnnotationsMergePatch builds a merge patch for annotation updates.

func StatusMergePatch added in v0.1.1

func StatusMergePatch(status any) ([]byte, error)

StatusMergePatch builds a merge patch for a status subresource update.

Types

This section is empty.

Jump to

Keyboard shortcuts

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