converter

package
v0.51.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAuthorization

func ConvertAuthorization(srcSafe *promv1.SafeAuthorization, src *promv1.Authorization) *vmv1beta1.Authorization

ConvertAuthorization converts prometheus auth struct to VM one

func ConvertBasicAuth

func ConvertBasicAuth(bAuth *promv1.BasicAuth) *vmv1beta1.BasicAuth

ConvertBasicAuth converts Prometheus basic auth config to VM one

func ConvertOAuth

func ConvertOAuth(src *promv1.OAuth2) *vmv1beta1.OAuth2

ConvertOAuth converts prometheus OAuth config to VM one

func ConvertPodMonitor

func ConvertPodMonitor(podMon *promv1.PodMonitor, conf *config.BaseOperatorConf) *vmv1beta1.VMPodScrape

ConvertPodMonitor create VMPodScrape from PodMonitor

func ConvertProbe

func ConvertProbe(probe *promv1.Probe, conf *config.BaseOperatorConf) *vmv1beta1.VMProbe

ConvertProbe creates VMProbe from prometheus probe

func ConvertPromRule

func ConvertPromRule(prom *promv1.PrometheusRule, conf *config.BaseOperatorConf) *vmv1beta1.VMRule

ConvertPromRule creates VMRule from PrometheusRule

func ConvertRelabelConfig

func ConvertRelabelConfig(promRelabelConfig []promv1.RelabelConfig) []*vmv1beta1.RelabelConfig

ConvertRelabelConfig converts Prometheus relabel config to VM one

func ConvertSafeTLSConfig added in v0.47.0

func ConvertSafeTLSConfig(tlsConf *promv1.SafeTLSConfig) *vmv1beta1.TLSConfig

ConvertSafeTLSConfig performs convert ConvertSafeTLSConfig to vm version

func ConvertServiceMonitor

func ConvertServiceMonitor(serviceMon *promv1.ServiceMonitor, conf *config.BaseOperatorConf) *vmv1beta1.VMServiceScrape

ConvertServiceMonitor create VMServiceScrape from ServiceMonitor

func ConvertTLSConfig

func ConvertTLSConfig(tlsConf *promv1.TLSConfig) *vmv1beta1.TLSConfig

ConvertTLSConfig converts Prometheus TLS config to VM one

func FilterPrefixes

func FilterPrefixes(src map[string]string, filterPrefixes []string) map[string]string

FilterPrefixes filters given prefixes from src map

func MaybeAddArgoCDIgnoreAnnotations

func MaybeAddArgoCDIgnoreAnnotations(mustAdd bool, dst map[string]string) map[string]string

MaybeAddArgoCDIgnoreAnnotations optionally adds ArgoCD annotations

func ReplacePromDirPath

func ReplacePromDirPath(origin string) string

ReplacePromDirPath replace prometheus durectory path for config maps and secrets to VM one

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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