You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Dynatrace Operator is currently not respecting the namespaceSelector matchLabels configuration. Despite setting specific labels to restrict the operator’s activity to certain namespaces, the Dynatrace OneAgent is being injected into all namespaces. This behavior deviates from the expected functionality, where only namespaces matching the specified labels should be affected by the operator. I'm following this guide: https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/guides/operation/annotate
Expected behavior
The Dynatrace Operator should only inject the OneAgent into namespaces that have the labels specified in namespaceSelector.matchLabels. Other namespaces without these labels should remain unaffected.
Additional context
dynatrace-operator:1.2.2
Namespace labels:
ns-xyz Active 3d7h dynakube.internal.dynatrace.com/instance=xyz,kubernetes.io/metadata.name=ns-xyz
The problem is the namespace doesn't have the label dynatrace: true and even with that pods from that namespace has oneagent injected and the initContainer: install-oneagent
The text was updated successfully, but these errors were encountered:
Thank you for opening a Dynatrace Operator Issue. We've identified and tagged the issue as a "Support request".
Dynatrace responds to requests like these via Dynatrace ONE support rather than Github. This helps our team respond as quickly as possible using the support team's tools and procedures.
Describe the bug
The Dynatrace Operator is currently not respecting the namespaceSelector matchLabels configuration. Despite setting specific labels to restrict the operator’s activity to certain namespaces, the Dynatrace OneAgent is being injected into all namespaces. This behavior deviates from the expected functionality, where only namespaces matching the specified labels should be affected by the operator. I'm following this guide: https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/guides/operation/annotate
To Reproduce
Follow this guide https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/guides/operation/annotate
Expected behavior
The Dynatrace Operator should only inject the OneAgent into namespaces that have the labels specified in namespaceSelector.matchLabels. Other namespaces without these labels should remain unaffected.
Additional context
Namespace labels:
Dynakube config:
The problem is the namespace doesn't have the label dynatrace: true and even with that pods from that namespace has oneagent injected and the initContainer: install-oneagent
The text was updated successfully, but these errors were encountered: