Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthFields ¶
func AuthFields() []*service.ConfigField
AuthFields returns the config fields for Kubernetes authentication. These fields are shared across all Kubernetes components.
func CommonFields ¶
func CommonFields() []*service.ConfigField
CommonFields returns config fields shared across all Kubernetes inputs.
func InClusterNamespace ¶
func InClusterNamespace() string
InClusterNamespace returns the namespace this pod is running in, or "default" if not running in a cluster.
func LabelSelectorFromMap ¶
LabelSelectorFromMap converts a map of key-value pairs to a Kubernetes label selector string (e.g., "app=myapp,env=prod").
Types ¶
type ClientSet ¶
type ClientSet struct {
Typed kubernetes.Interface
Dynamic dynamic.Interface
Discovery discovery.DiscoveryInterface
Mapper meta.RESTMapper
Config *rest.Config
}
ClientSet contains the typed, dynamic, and discovery Kubernetes clients.
func GetClientSet ¶
func GetClientSet(ctx context.Context, conf *service.ParsedConfig, fs *service.FS) (*ClientSet, error)
GetClientSet creates Kubernetes clients from parsed configuration.
Click to show internal directories.
Click to hide internal directories.