Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Aug 19, 2024
1 parent 4730586 commit 1ee5dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/operator/converter/v1alpha1/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func ConvertScrapeConfig(promscrapeConfig *promv1alpha1.ScrapeConfig, conf *conf
cs.Annotations = converter.FilterPrefixes(promscrapeConfig.Annotations, conf.FilterPrometheusConverterAnnotationPrefixes)
cs.Spec.RelabelConfigs = converter.ConvertRelabelConfig(promscrapeConfig.Spec.RelabelConfigs)
cs.Spec.MetricRelabelConfigs = converter.ConvertRelabelConfig(promscrapeConfig.Spec.MetricRelabelConfigs)
cs.Spec.Path = *promscrapeConfig.Spec.MetricsPath
cs.Spec.Path = ptr.Deref(promscrapeConfig.Spec.MetricsPath, "")

if promscrapeConfig.Spec.EnableCompression != nil {
cs.Spec.VMScrapeParams = &vmv1beta1.VMScrapeParams{
Expand Down

0 comments on commit 1ee5dcc

Please sign in to comment.