inventory

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChangeSet

func AddChangeSet(inv *kustomizev1.ResourceInventory, set *ssa.ChangeSet) error

AddChangeSet extracts the metadata from the given objects and adds it to the inventory.

func Diff

Diff returns the slice of objects that do not exist in the target inventory.

func List

List returns the inventory entries as unstructured.Unstructured objects.

func ListMetadata

ListMetadata returns the inventory entries as object.ObjMetadata objects.

func Merge added in v1.9.0

Merge appends the given objects to the inventory unless they already exist. Used to re-track resources whose prune was rejected by the apiserver (e.g. by an admission webhook) so that subsequent reconciles retry the deletion instead of leaving them as untracked orphans.

func New

func ReferenceToObjMetadataSet

func ReferenceToObjMetadataSet(cr []meta.NamespacedObjectKindReference) (object.ObjMetadataSet, error)

ReferenceToObjMetadataSet transforms a NamespacedObjectKindReference to an ObjMetadataSet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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