servicemonitor

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Port            string     `yaml:"port,omitempty"`
	TargetPort      string     `yaml:"targetPort,omitempty"`
	BearerTokenFile string     `yaml:"bearerTokenFile,omitempty"`
	Interval        string     `yaml:"interval,omitempty"`
	Path            string     `yaml:"path,omitempty"`
	Scheme          string     `yaml:"scheme,omitempty"`
	TLSConfig       *TLSConfig `yaml:"tlsConfig,omitempty"`
}

type NamespaceSelector

type NamespaceSelector struct {
	Any        bool     `yaml:"any"`
	MatchNames []string `yaml:"matchNames"`
}

type Selector

type Selector struct {
	MatchLabels map[string]string `yaml:"matchLabels"`
}

type TLSConfig

type TLSConfig struct {
	CaFile             string `yaml:"caFile"`
	CertFile           string `yaml:"certFile"`
	InsecureSkipVerify bool   `yaml:"insecureSkipVerify"`
	KeyFile            string `yaml:"keyFile"`
	ServerName         string `yaml:"serverName"`
}

type Values

type Values struct {
	Name              string             `yaml:"name"`
	AdditionalLabels  map[string]string  `yaml:"additionalLabels"`
	JobLabel          string             `yaml:"jobLabel"`
	TargetLabels      string             `yaml:"targetLabels"`
	Selector          *Selector          `yaml:"selector"`
	NamespaceSelector *NamespaceSelector `yaml:"namespaceSelector"`
	Endpoints         []*Endpoint        `yaml:"endpoints"`
}

func SpecToValues

func SpecToValues(labels map[string]string, spec *toolsetsv1beta1.ServiceMonitor) *Values

Jump to

Keyboard shortcuts

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