Documentation ¶
Overview ¶
Package kubernetes implements a discovery.kubernetes component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Arguments{ HTTPClientConfig: config.DefaultHTTPClientConfig, }
DefaultConfig holds defaults for SDConfig.
Functions ¶
Types ¶
type Arguments ¶ added in v0.30.0
type Arguments struct { APIServer config.URL `river:"api_server,attr,optional"` Role string `river:"role,attr"` KubeConfig string `river:"kubeconfig_file,attr,optional"` HTTPClientConfig config.HTTPClientConfig `river:"http_client_config,block,optional"` NamespaceDiscovery NamespaceDiscovery `river:"namespaces,block,optional"` Selectors []SelectorConfig `river:"selectors,block,optional"` }
Arguments configures the discovery.kubernetes component.
func (*Arguments) UnmarshalRiver ¶ added in v0.30.0
UnmarshalRiver implements river.Unmarshaler and applies default settings.
type NamespaceDiscovery ¶
type NamespaceDiscovery struct { IncludeOwnNamespace bool `river:"own_namespace,attr,optional"` Names []string `river:"names,attr,optional"` }
NamespaceDiscovery configures filtering rules for which namespaces to discover.
type SelectorConfig ¶
type SelectorConfig struct { Role string `river:"role,attr"` Label string `river:"label,attr,optional"` Field string `river:"field,attr,optional"` }
SelectorConfig configures selectors to filter resources to discover.
Click to show internal directories.
Click to hide internal directories.