Documentation
¶
Overview ¶
Package backfiller provides functionality to backfill Kubernetes resources and store them in a specified storage. This package is designed to gather data from various Kubernetes resources such as namespaces, pods, deployments, statefulsets, daemonsets, jobs, cronjobs, and nodes. The gathered data is then formatted and stored using a resource store interface. This business logic layer is essential for maintaining an up-to-date inventory of Kubernetes resources, which can be used for monitoring, auditing, and analysis purposes.
The Backfiller struct is the main component of this package, which is initialized with a Kubernetes client, resource store, and configuration settings. The Start method begins the scraping process, iterating through all namespaces and collecting data from the specified resources based on the provided filters.
The package also includes helper functions such as writeResources and writeNodes to handle the listing and storing of resources in a paginated manner, ensuring efficient data retrieval and storage.
This package is valuable for organizations that need to keep track of their Kubernetes resources and ensure that their inventory is always up-to-date. It provides a robust and flexible solution for scraping and storing Kubernetes resource data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backfiller ¶
type Backfiller struct {
// contains filtered or unexported fields
}
func NewBackfiller ¶
func NewBackfiller(k8sClient kubernetes.Interface, store types.ResourceStore, settings *config.Settings) *Backfiller
func (*Backfiller) Start ¶
func (s *Backfiller) Start(ctx context.Context)