config

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseNamespaceSelector

func ParseNamespaceSelector(namespaceSelector string) (labels.Selector, error)

ParseNamespaceSelector parses a namespace selector string into a labels.Selector. Returns nil if the selector is empty, which means all namespaces will be watched.

func ParseSilenceSelector

func ParseSilenceSelector(silenceSelector string) (labels.Selector, error)

ParseSilenceSelector parses a silence selector string into a labels.Selector. Returns nil if the selector is empty, which means no filtering will be applied.

Types

type Config

type Config struct {
	Address        string
	Authentication bool
	BearerToken    string
	TenantId       string

	// SilenceSelector is used to filter silences based on label selectors.
	// If nil, the controller will watch all silences.
	SilenceSelector labels.Selector
	// NamespaceSelector is used to restrict which namespaces the v2 controller watches.
	// If nil, the controller will watch all namespaces.
	NamespaceSelector labels.Selector

	// Tenancy configuration
	TenancyEnabled       bool
	TenancyLabelKey      string // Single label key to extract tenant from (e.g., "observability.giantswarm.io/tenant")
	TenancyDefaultTenant string
}

Config struct holds all the configuration for the operator.

Jump to

Keyboard shortcuts

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