Skip to content

Commit

Permalink
Add additional logic for these disable variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rivToadd committed Mar 7, 2024
1 parent e984e99 commit 9bf454e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion internal/manifests/collector/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,25 @@ func Annotations(instance v1beta1.OpenTelemetryCollector) (map[string]string, er
// new map every time, so that we don't touch the instance's annotations
annotations := map[string]string{}

var enableAnnotations bool
// enableAnnotations is true only if both disable variables are false.
// DisableAutomaticPrometheusAnnotations takes precedence over DisablePrometheusAnnotations.
if instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations {

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 33 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)
enableAnnotations = !instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 34 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)
} else if instance.Spec.Observability.Metrics.DisablePrometheusAnnotations {
enableAnnotations = !instance.Spec.Observability.Metrics.DisablePrometheusAnnotations
} else {
enableAnnotations = true
}
if enableAnnotations {
// Set default Prometheus annotations
annotations["prometheus.io/scrape"] = "true"
annotations["prometheus.io/port"] = "8888"
annotations["prometheus.io/path"] = "/metrics"
}

// Enable Prometheus annotations by default if DisablePrometheusAnnotations|DisableAutomaticPrometheusAnnotations is nil or true
if !instance.Spec.Observability.Metrics.DisablePrometheusAnnotations || !instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations {
if !instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations {

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-pdb)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-multi-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-instrumentation)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Unit tests

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-upgrade)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-opampbridge)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-prometheuscr)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-autoscale)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)) (typecheck)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / Code standards (linting)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.23, e2e)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)

Check failure on line 48 in internal/manifests/collector/annotations.go

View workflow job for this annotation

GitHub Actions / e2e-tests (1.29, e2e-targetallocator)

instance.Spec.Observability.Metrics.DisableAutomaticPrometheusAnnotations undefined (type "github.com/open-telemetry/opentelemetry-operator/apis/v1beta1".MetricsConfigSpec has no field or method DisableAutomaticPrometheusAnnotations)
// Set default Prometheus annotations
annotations["prometheus.io/scrape"] = "true"
annotations["prometheus.io/port"] = "8888"
Expand Down

0 comments on commit 9bf454e

Please sign in to comment.