configgen

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

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 []*alloy_relabel.Config
	ScrapeOptions            operator.ScrapeOptions
}

func (*ConfigGenerator) GeneratePodMonitorConfig

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

func (*ConfigGenerator) GenerateProbeConfig

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