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 ¶
Fetch will fetch discovery data from the apiserver, or return an error
func (*DataGathererDiscovery) WaitForCacheSync ¶
func (g *DataGathererDiscovery) WaitForCacheSync(ctx context.Context) error