The annotations-filter startup parameter is not used for configmap, rbac, service, serviceaccount resources. #3151
Labels
area:collector
Issues for deploying collector
enhancement
New feature or request
question
Further information is requested
Component(s)
collector
What happened?
Description
annotations-filter has a default configuration that filters kubectl.kubernetes.io/last-applied-configuration.
Steps to Reproduce
deploy a otel-collector instance.
Expected Result
None of the resources installed by opentelemetry-operator have kubectl.kubernetes.io/last-applied-configuration annotations.
Actual Result
The configmap, rbac, service, serviceaccount resources are annotated kubectl.kubernetes.io/last-applied-configuration.
Kubernetes Version
v1.29.2
Operator version
v0.104.0
Collector version
v0.104.0
Environment information
Environment
OS: MacOS Kind
Log output
No response
Additional context
I found that the hpa resource filters the kubectl.kubernetes.io/last-applied-configuration annotation.
Reference: https://github.com/open-telemetry/opentelemetry-operator/blob/v0.104.0/internal/manifests/collector/horizontalpodautoscaler.go# L31.
When I try to fix this issue using similar code, I have the following two queries:
whether Prometheus annotations should be added only in PodAnnotations.
Should the opentelemetry-operator-config/sha256 annotation be added to all resources.
The text was updated successfully, but these errors were encountered: