Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
The GarbageCollector controller monitors manifestworks and associated owner resources, managing the relationship between them and deleting manifestworks when all owner resources are removed. It currently supports only background deletion policy, lacking support for foreground and orphan policies. To prevent overwhelming the API server, the garbage collector operates with rate limiting. It is designed to run alongside the cloudevents source work client, eg. each addon controller utilizing the cloudevents driver should be accompanied by its own garbage collector.
func NewGarbageCollector ¶
func NewGarbageCollector( workClientHolder *cloudeventswork.ClientHolder, workInformer workv1informers.ManifestWorkInformer, metadataClient metadata.Interface, ownerGVRFilters map[schema.GroupVersionResource]*metav1.ListOptions) *GarbageCollector
NewGarbageCollector creates a new garbage collector instance.
type ObjectMetaForOwnerRefsPatch ¶
type ObjectMetaForOwnerRefsPatch struct { ResourceVersion string `json:"resourceVersion"` OwnerReferences []metav1.OwnerReference `json:"ownerReferences"` }
ObjectMetaForOwnerRefsPatch defines object meta struct for owner references patch operation.