Versions in this module Expand all Collapse all v1 v1.1.1-pre.1 Oct 7, 2026 v1.1.0 Sep 24, 2026 Changes in this version + const ConfigPrefix + const DefaultNamespace + const Error + const IDAnnotation + const IndexAnnotation + const Info + const InternalAnnotationsMigrationResourceIDAnnotation + const KptFunctionAPIVersion + const KptFunctionGroup + const KptFunctionVersion + const KptLocalConfig + const KptUseOnlyPrefix + const PathAnnotation + const SeqIndentAnnotation + const UnknownNamespace + const UpstreamIdentifier + const Warning + var MatchAllKRM = append([]string{ ... }, kio.MatchAll) + func ApplyFnBySelector(rl *ResourceList, selector func(obj *KubeObject) bool, ...) error + func CheckResourceDuplication(rl *ResourceList) error + func HasAnnotations(annotations map[string]string) func(*KubeObject) bool + func HasLabels(labels map[string]string) func(*KubeObject) bool + func IsGVK(group, version, kind string) func(*KubeObject) bool + func IsGroupKind(gk schema.GroupKind) func(*KubeObject) bool + func IsGroupVersionKind(gvk schema.GroupVersionKind) func(*KubeObject) bool + func IsKrmResourceFile(path string) bool + func IsLocalConfig(o *KubeObject) bool + func IsMetaResource() func(*KubeObject) bool + func IsName(name string) func(*KubeObject) bool + func IsNamespace(namespace string) func(*KubeObject) bool + func Not(f func(*KubeObject) bool) func(o *KubeObject) bool + func ParseGroupVersion(apiVersion string) (group, version string) + func PathOfKubeObject(node *KubeObject) string + func WriteKubeObjectsToPackage(objs KubeObjects) (map[string]string, error) + func WriteKubeObjectsToString(objs KubeObjects) (string, error) + type ErrAttemptToTouchUpstreamIdentifier struct + func (ErrAttemptToTouchUpstreamIdentifier) Error() string + type ErrInternalAnnotation struct + Message string + func (e *ErrInternalAnnotation) Error() string + type ErrMissingFnConfig struct + func (ErrMissingFnConfig) Error() string + type ErrUnmatchedField struct + DataType string + SubObject *SubObject + func NewErrUnmatchedField(obj SubObject, fields []string, expectedFieldType any) *ErrUnmatchedField + func (e *ErrUnmatchedField) Error() string + type Field = fnresultv1.Field + type File = framework.File + type KubeObject struct + func CopyToKubeObject(rn *yaml.RNode) *KubeObject + func MoveToKubeObject(rn *yaml.RNode) *KubeObject + func NewEmptyKubeObject() *KubeObject + func NewFromTypedObject(v any) (*KubeObject, error) + func NewKubeObjectFromMap(m map[string]any) (*KubeObject, error) + func NewKubeObjectFromResourceNode(rn *yaml.RNode) *KubeObject + func ParseKubeObject(in []byte) (*KubeObject, error) + func ParseKubeObjects(in []byte) ([]*KubeObject, error) + func (o *KubeObject) Copy() *KubeObject + func (o *KubeObject) CopyToResourceNode() *yaml.RNode + func (o *KubeObject) GetAPIVersion() string + func (o *KubeObject) GetAnnotation(k string) string + func (o *KubeObject) GetAnnotations() map[string]string + func (o *KubeObject) GetGKNNString() string + func (o *KubeObject) GetID() *ResourceIdentifier + func (o *KubeObject) GetKind() string + func (o *KubeObject) GetLabel(k string) string + func (o *KubeObject) GetLabels() map[string]string + func (o *KubeObject) GetName() string + func (o *KubeObject) GetNamespace() string + func (o *KubeObject) GetOriginID() (*ResourceIdentifier, error) + func (o *KubeObject) GetPackageScopeUniqueID() PackageScopeUniqueID + func (o *KubeObject) GroupKind() schema.GroupKind + func (o *KubeObject) GroupVersionKind() schema.GroupVersionKind + func (o *KubeObject) HasAnnotations(annotations map[string]string) bool + func (o *KubeObject) HasLabels(labels map[string]string) bool + func (o *KubeObject) HasNamespace() bool + func (o *KubeObject) HasSameID(b *KubeObject) bool + func (o *KubeObject) HasUpstreamOrigin() bool + func (o *KubeObject) HeadComment(fields ...string) (string, bool, error) + func (o *KubeObject) IDAnnotation() int + func (o *KubeObject) IndexAnnotation() int + func (o *KubeObject) IsClusterScoped() bool + func (o *KubeObject) IsEmpty() bool + func (o *KubeObject) IsGVK(group, version, kind string) bool + func (o *KubeObject) IsGroupKind(gk schema.GroupKind) bool + func (o *KubeObject) IsGroupVersionKind(gvk schema.GroupVersionKind) bool + func (o *KubeObject) IsLocalConfig() bool + func (o *KubeObject) IsNamespaceScoped() bool + func (o *KubeObject) LineComment(fields ...string) (string, bool, error) + func (o *KubeObject) MoveToResourceNode() *yaml.RNode + func (o *KubeObject) PathAnnotation() string + func (o *KubeObject) RemoveAnnotation(k string) error + func (o *KubeObject) RemoveAnnotationsIfEmpty() error + func (o *KubeObject) RemoveLabel(k string) error + func (o *KubeObject) SetAPIVersion(apiVersion string) error + func (o *KubeObject) SetAnnotation(k, v string) error + func (o *KubeObject) SetHeadComment(comment string, fields ...string) error + func (o *KubeObject) SetIndexAnnotation(index int) error + func (o *KubeObject) SetKind(kind string) error + func (o *KubeObject) SetLabel(k, v string) error + func (o *KubeObject) SetLineComment(comment string, fields ...string) error + func (o *KubeObject) SetName(name string) error + func (o *KubeObject) SetNamespace(name string) error + func (o *KubeObject) SetPathAnnotation(path string) error + func (o *KubeObject) ShortString() string + type KubeObjects []*KubeObject + func MoveToKubeObjects(rns []*yaml.RNode) KubeObjects + func ReadKubeObjectsFromDirectory(path string) (KubeObjects, error) + func ReadKubeObjectsFromFile(filepath string, content string) (KubeObjects, error) + func ReadKubeObjectsFromPackage(inputFiles map[string]string) (objs KubeObjects, extraFiles map[string]string, err error) + func (kos *KubeObjects) Upsert(newObj *KubeObject) + func (kos *KubeObjects) UpsertTypedObject(newObj any) error + func (kos KubeObjects) CopyToResourceNodes() kio.ResourceNodeSlice + func (kos KubeObjects) EnsureSingleItem() (*KubeObject, error) + func (kos KubeObjects) EnsureSingleItemAs(out any) error + func (kos KubeObjects) GetRootKptfile() *KubeObject + func (kos KubeObjects) Len() int + func (kos KubeObjects) Less(i, j int) bool + func (kos KubeObjects) SetAnnotation(key, value string) error + func (kos KubeObjects) Split(predicate func(o *KubeObject) bool) (KubeObjects, KubeObjects) + func (kos KubeObjects) String() string + func (kos KubeObjects) Swap(i, j int) + func (kos KubeObjects) Where(f func(*KubeObject) bool) KubeObjects + func (kos KubeObjects) WhereNot(f func(o *KubeObject) bool) KubeObjects + type PackageScopeUniqueID struct + Index int + Path string + func (id PackageScopeUniqueID) String() string + type ResourceIdentifier struct + Group string + Kind string + Name string + Namespace string + func (r *ResourceIdentifier) String() string + type ResourceList struct + FunctionConfig *KubeObject + Items KubeObjects + Results Results + func ParseResourceList(in []byte) (*ResourceList, error) + func (rl *ResourceList) LogResult(err error) + func (rl *ResourceList) Sort() + func (rl *ResourceList) ToYAML() ([]byte, error) + func (rl *ResourceList) UpsertObjectToItems(obj any, checkExistence func(obj, another *KubeObject) bool, ...) error + type ResourceListProcessor interface + Process func(rl *ResourceList) (bool, error) + func Chain(processors ...ResourceListProcessor) ResourceListProcessor + type ResourceListProcessorFunc func(rl *ResourceList) (bool, error) + func ChainFunctions(functions ...ResourceListProcessorFunc) ResourceListProcessorFunc + func (p ResourceListProcessorFunc) Process(rl *ResourceList) (bool, error) + type Result = fnresultv1.ResultItem + func ConfigFileResult(msg, path string, severity Severity) *Result + func ConfigObjectResult(msg string, obj *KubeObject, severity Severity) *Result + func ErrorConfigFileResult(err error, path string) *Result + func ErrorConfigObjectResult(err error, obj *KubeObject) *Result + func ErrorResult(err error) *Result + func GeneralResult(msg string, severity Severity) *Result + type Results []*Result + func (r *Results) ErrorE(err error) + func (r *Results) Errorf(format string, a ...any) + func (r *Results) Infof(format string, a ...any) + func (r *Results) String() string + func (r *Results) WarningE(err error) + func (r *Results) Warningf(format string, a ...any) + func (r Results) Error() string + func (r Results) ExitCode() int + func (r Results) Sort() + type Severity = framework.Severity + type SliceSubObjects []*SubObject + func (s *SliceSubObjects) MarshalJSON() ([]byte, error) + type SubObject struct + func (o *SubObject) As(ptr any) error + func (o *SubObject) Bytes() []byte + func (o *SubObject) GetBool(k string) bool + func (o *SubObject) GetInt(k string) int64 + func (o *SubObject) GetMap(k string) *SubObject + func (o *SubObject) GetSlice(k string) SliceSubObjects + func (o *SubObject) GetString(k string) string + func (o *SubObject) HasField(key string) bool + func (o *SubObject) IsEmpty() bool + func (o *SubObject) NestedBool(fields ...string) (bool, bool, error) + func (o *SubObject) NestedFloat64(fields ...string) (float64, bool, error) + func (o *SubObject) NestedInt(fields ...string) (int, bool, error) + func (o *SubObject) NestedInt64(fields ...string) (int64, bool, error) + func (o *SubObject) NestedResource(ptr any, fields ...string) (bool, error) + func (o *SubObject) NestedSlice(fields ...string) (SliceSubObjects, bool, error) + func (o *SubObject) NestedString(fields ...string) (string, bool, error) + func (o *SubObject) NestedStringMap(fields ...string) (map[string]string, bool, error) + func (o *SubObject) NestedStringSlice(fields ...string) ([]string, bool, error) + func (o *SubObject) NestedSubObject(fields ...string) (SubObject, bool, error) + func (o *SubObject) RemoveNestedField(fields ...string) (bool, error) + func (o *SubObject) Set(newValue *SubObject) error + func (o *SubObject) SetFromTypedObject(newValue any) error + func (o *SubObject) SetMap(mapObj *SubObject, k string) error + func (o *SubObject) SetNestedBool(value bool, fields ...string) error + func (o *SubObject) SetNestedField(val any, fields ...string) error + func (o *SubObject) SetNestedInt(value int, fields ...string) error + func (o *SubObject) SetNestedString(value string, fields ...string) error + func (o *SubObject) SetNestedStringMap(value map[string]string, fields ...string) error + func (o *SubObject) SetNestedStringSlice(value []string, fields ...string) error + func (o *SubObject) SetSlice(objects SliceSubObjects, field string) error + func (o *SubObject) String() string + func (o *SubObject) UpdateNestedStringMap(values map[string]string, fields ...string) error + func (o *SubObject) UpsertMap(k string) *SubObject