-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/k8sattributes] support extracting labels and annotations from Deployments #38343
base: main
Are you sure you want to change the base?
[processor/k8sattributes] support extracting labels and annotations from Deployments #38343
Conversation
aff9e65
to
cad5b00
Compare
7a3bd1f
to
f1745c9
Compare
newInformer InformerProvider, | ||
newNamespaceInformer InformerProviderNamespace, | ||
newReplicaSetInformer InformerProviderReplicaSet, | ||
informersFactory InformersFactoryList, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small refactoring for potential future extensions
@@ -478,14 +547,10 @@ func (c *WatchClient) extractPodAttributes(pod *api_v1.Pod) map[string]string { | |||
if c.Rules.StartTime { | |||
ts := pod.GetCreationTimestamp() | |||
if !ts.IsZero() { | |||
if enableRFC3339Timestamp.IsEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the feature gate is already in stable phase, therefore there is no possibility to disable it, therefore this if-else
statement is unneeded, as the else
branch is unreachable
… workloads Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
e9e79c1
to
87e27be
Compare
Description
Add support for extraction of labels and annotations from Deployments. This change comes with elevated RBAC permissions - adding Deployment permissions to the ClusterRole
Link to tracking issue
Fixes #37957