kubelet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package kubelet implements a discovery.kubelet component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts component.Options, args Arguments) (*discovery.Component, error)

New returns a new instance of a discovery.kubelet component.

Types

type Arguments

type Arguments struct {
	URL              config.URL              `alloy:"url,attr,optional"`
	Interval         time.Duration           `alloy:"refresh_interval,attr,optional"`
	HTTPClientConfig config.HTTPClientConfig `alloy:",squash"`
	Namespaces       []string                `alloy:"namespaces,attr,optional"`
}

Arguments configures the discovery.kubelet component.

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

type Discovery

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

func NewKubeletDiscovery

func NewKubeletDiscovery(args Arguments) (*Discovery, error)

func (*Discovery) Refresh

func (d *Discovery) Refresh(ctx context.Context) ([]*targetgroup.Group, error)

Jump to

Keyboard shortcuts

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