modulepackage
0.0.0-20240530120112-eafc3ef0ae3a
Repository: https://github.com/bougou/go-k8sutils.git
Documentation: pkg.go.dev
# README
go-k8sutils
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
TransformRemoveCreationTimestamp ensures we do not write the metadata.creationTimestamp field.
TransformRemoveCreationTimestampRecursive removes all fields "creationTimestamp" recusively.
No description provided by the author
TransformRemoveStatus remove status field.
UnmarshalToRuntimeObject unmarshal yaml to runtime.Object.
No description provided by the author
apimachinery/pkg defines
type NamespacedName struct { Namespace string Name string }
controller-runtime defines
type ObjectKey = types.NamespacedName
They are the same thing.
WithTransform applies a transformation to objects just before writing them.
Usage:
b, err := YAMLMarshal(vm, WithTransform(TransformRemoveCreationTimestampRecursive), WithTransform(TransformRemoveStatus)) if err != nil { }.
# Structs
No description provided by the author