configgen

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigGenerator

type ConfigGenerator struct {
	Client                   *k8sConfig.ClientArguments
	Secrets                  SecretFetcher
	AdditionalRelabelConfigs []*flow_relabel.Config
}

func (*ConfigGenerator) GeneratePodMonitorConfig

func (cg *ConfigGenerator) GeneratePodMonitorConfig(m *promopv1.PodMonitor, ep promopv1.PodMetricsEndpoint, i int) (cfg *config.ScrapeConfig, err error)

func (*ConfigGenerator) GenerateProbeConfig added in v0.35.0

func (cg *ConfigGenerator) GenerateProbeConfig(m *promopv1.Probe) (cfg *config.ScrapeConfig, err error)

func (*ConfigGenerator) GenerateServiceMonitorConfig

func (cg *ConfigGenerator) GenerateServiceMonitorConfig(m *promopv1.ServiceMonitor, ep promopv1.Endpoint, i int) (cfg *config.ScrapeConfig, err error)

type SecretFetcher

type SecretFetcher interface {
	GetSecretValue(namespace string, sec corev1.SecretKeySelector) (string, error)
	GetConfigMapValue(namespace string, cm corev1.ConfigMapKeySelector) (string, error)
	SecretOrConfigMapValue(namespace string, socm promopv1.SecretOrConfigMap) (string, error)
}

func NewSecretManager

func NewSecretManager(client *kubernetes.Clientset) SecretFetcher

Jump to

Keyboard shortcuts

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