kubelet

package
v0.36.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package kubelet implements a discovery.kubelet component.

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Arguments{
	URL: config.URL{
		URL: defaultKubeletURL,
	},
	HTTPClientConfig: config.DefaultHTTPClientConfig,
}

DefaultConfig holds defaults for SDConfig.

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              `river:"url,attr,optional"`
	Interval         time.Duration           `river:"refresh_interval,attr,optional"`
	HTTPClientConfig config.HTTPClientConfig `river:",squash"`
	Namespaces       []string                `river:"namespaces,attr,optional"`
}

Arguments configures the discovery.kubelet component.

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements river.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