scrapeconfigs

package
v2.4.1-0...-6a18df0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "scrapeconfigs"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

func New

func New(config Config) (*generic.Resource, error)

Types

type Config

type Config struct {
	K8sClient          k8sclient.Interface
	Logger             micrologger.Logger
	OrganizationReader organization.Reader

	AdditionalScrapeConfigs   string
	Bastions                  []string
	Customer                  string
	Installation              string
	Pipeline                  string
	Provider                  cluster.Provider
	Region                    string
	Vault                     string
	TemplatePath              string
	WorkloadClusterETCDDomain string

	MimirEnabled bool
}

type TemplateData

type TemplateData struct {
	AdditionalScrapeConfigs   string
	APIServerURL              string
	AuthenticationType        string
	Bastions                  []string
	Pipeline                  string
	Provider                  string
	Region                    string
	ClusterID                 string
	ClusterType               string
	ServicePriority           string
	Customer                  string
	Organization              string
	SecretName                string
	EtcdSecretName            string
	Installation              string
	IgnoredTargets            string
	Vault                     string
	WorkloadClusterETCDDomain string
	CAPIManagementCluster     bool
	VintageManagementCluster  bool
}

Jump to

Keyboard shortcuts

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