vmscrapes

package
v0.69.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRelabelConfigs

func AddRelabelConfigs(dst []yaml.MapSlice, rcs []*vmv1beta1.RelabelConfig) []yaml.MapSlice

AddRelabelConfigs adds relabel configuration to yaml

Types

type ParsedObjects

type ParsedObjects struct {
	APIServerConfig          *vmv1beta1.APIServerConfig
	Namespace                string
	ExternalLabels           map[string]string
	MustUseNodeSelector      bool
	HasClusterWideAccess     bool
	IgnoreNamespaceSelectors bool
	// contains filtered or unexported fields
}

func (*ParsedObjects) GenerateConfig

func (pos *ParsedObjects) GenerateConfig(ctx context.Context, sp *vmv1beta1.CommonScrapeParams, ac *build.AssetsCache) ([]byte, error)

GenerateConfig generates yaml scrape configuration from collected scrape objects

func (*ParsedObjects) Init

func (*ParsedObjects) UpdateStatusesForScrapeObjects

func (pos *ParsedObjects) UpdateStatusesForScrapeObjects(ctx context.Context, rclient client.Client, parentName string, childObject client.Object) error

UpdateStatusesForScrapeObjects updates status of either selected childObject or all child objects

func (*ParsedObjects) ValidateObjects

func (pos *ParsedObjects) ValidateObjects(sp *vmv1beta1.CommonScrapeParams)

Jump to

Keyboard shortcuts

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