Documentation ¶
Index ¶
- func ConvertAuthorization(srcSafe *promv1.SafeAuthorization, src *promv1.Authorization) *vmv1beta1.Authorization
- func ConvertBasicAuth(bAuth *promv1.BasicAuth) *vmv1beta1.BasicAuth
- func ConvertOAuth(src *promv1.OAuth2) *vmv1beta1.OAuth2
- func ConvertPodMonitor(podMon *promv1.PodMonitor, conf *config.BaseOperatorConf) *vmv1beta1.VMPodScrape
- func ConvertProbe(probe *promv1.Probe, conf *config.BaseOperatorConf) *vmv1beta1.VMProbe
- func ConvertPromRule(prom *promv1.PrometheusRule, conf *config.BaseOperatorConf) *vmv1beta1.VMRule
- func ConvertRelabelConfig(promRelabelConfig []promv1.RelabelConfig) []*vmv1beta1.RelabelConfig
- func ConvertSafeTLSConfig(tlsConf *promv1.SafeTLSConfig) *vmv1beta1.TLSConfig
- func ConvertServiceMonitor(serviceMon *promv1.ServiceMonitor, conf *config.BaseOperatorConf) *vmv1beta1.VMServiceScrape
- func ConvertTLSConfig(tlsConf *promv1.TLSConfig) *vmv1beta1.TLSConfig
- func FilterPrefixes(src map[string]string, filterPrefixes []string) map[string]string
- func MaybeAddArgoCDIgnoreAnnotations(mustAdd bool, dst map[string]string) map[string]string
- func ReplacePromDirPath(origin string) string
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 ¶
ConvertBasicAuth converts Prometheus basic auth config to VM one
func ConvertOAuth ¶
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 ¶
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 ¶
ConvertTLSConfig converts Prometheus TLS config to VM one
func FilterPrefixes ¶
FilterPrefixes filters given prefixes from src map
func MaybeAddArgoCDIgnoreAnnotations ¶
MaybeAddArgoCDIgnoreAnnotations optionally adds ArgoCD annotations
func ReplacePromDirPath ¶
ReplacePromDirPath replace prometheus durectory path for config maps and secrets to VM one
Types ¶
This section is empty.