k8sdiscovery

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigDiscovery

type ConfigDiscovery struct {
	// KubeConfigPath is the path to the kubeconfig file. If empty, will assume it runs in-cluster.
	KubeConfigPath string `yaml:"kubeconfig"`
}

ConfigDiscovery contains the configuration for the k8s-discovery data-gatherer

func (*ConfigDiscovery) NewDataGatherer

func (c *ConfigDiscovery) NewDataGatherer(ctx context.Context) (datagatherer.DataGatherer, error)

NewDataGatherer constructs a new instance of the generic K8s data-gatherer for the provided GroupVersionResource. It gets the UID of the 'kube-system' namespace to use as the cluster ID, once at startup. The UID is assumed to be stable for the lifetime of the cluster. - https://github.com/kubernetes/kubernetes/issues/77487#issuecomment-489786023

func (*ConfigDiscovery) UnmarshalYAML

func (c *ConfigDiscovery) UnmarshalYAML(unmarshal func(any) error) error

UnmarshalYAML unmarshals the Config resolving GroupVersionResource.

type DataGathererDiscovery

type DataGathererDiscovery struct {
	// contains filtered or unexported fields
}

DataGathererDiscovery stores the config for a k8s-discovery datagatherer

func (*DataGathererDiscovery) Fetch

func (g *DataGathererDiscovery) Fetch(ctx context.Context) (any, int, error)

Fetch will fetch discovery data from the apiserver, or return an error

func (*DataGathererDiscovery) Run

func (*DataGathererDiscovery) WaitForCacheSync

func (g *DataGathererDiscovery) WaitForCacheSync(ctx context.Context) error

Jump to

Keyboard shortcuts

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