Documentation
¶
Index ¶
Constants ¶
View Source
const SrcLabelPrefix = "src_"
Variables ¶
This section is empty.
Functions ¶
func GetKubeConfig ¶
GetKubeConfigPath creates rest.Config from the provided path for kubeconfig. If the provided path is empty, the in-cluster config is the default.
Types ¶
type LabelsIntersectionMatcher ¶
LabelsIntersectionMatcher implements LabelsMatcher by spefically matching the intersection between sets
func (LabelsIntersectionMatcher) Equals ¶
func (l LabelsIntersectionMatcher) Equals(other LabelsMatcher) bool
type LabelsMatcher ¶
type LabelsMatcher interface {
Matches(labels model.LabelSet) (match bool, keys []model.LabelName)
Equals(other LabelsMatcher) bool
}
func NewLabelsMatcher ¶
func NewLabelsMatcher(key string, matcher ValueMatcher) LabelsMatcher
type LabelsSubsetMatcher ¶
labelsMatcher represents a matcher definition for a set of labels. It matches if all of the label matchers match the labels.
func (LabelsSubsetMatcher) Equals ¶
func (l LabelsSubsetMatcher) Equals(other LabelsMatcher) bool
type Options ¶
type Options struct {
// Refresh interval in seconds.
RefreshInterval int
PromURL string
AlertManagerURL string
// Path to the kube-config file.
Kubeconfig string
CertFile string
CertKey string
TLSMinVersion string
TLSCipherSuites []string
// Disable components health evaluation
DisableComponentsHealth bool
// Disable incident detection
DisableIncidents bool
// path to the components yaml file
ComponentsPath string
}
type ValueMatcher ¶
type ValueMatcher interface {
Matches(value string) bool
Equals(other ValueMatcher) bool
}
ValueMatcher represents a matcher for a specific value.
Multiple implementations are provided for different types of matchers.
func NewRegexValuesMatcher ¶
func NewRegexValuesMatcher(regexes ...*regexp.Regexp) ValueMatcher
func NewStringValuesMatcher ¶
func NewStringValuesMatcher(keys ...string) ValueMatcher
Click to show internal directories.
Click to hide internal directories.