-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[processor/k8sattributes] support extracting labels and annotations from Deployments #38343
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
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
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.
Usually we have refactorings in standalone PRs first :): https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#refactoring-work.
But I would be fine keeping this here if others agree.
e9e79c1
to
87e27be
Compare
@@ -996,6 +1091,22 @@ func (c *WatchClient) extractNamespaceLabelsAnnotations() bool { | |||
return false | |||
} | |||
|
|||
func (c *WatchClient) extractDeploymentLabelsAnnotations() bool { |
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.
is this also to be checked with which metrics are enabled?
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.
not sure I understand...
068fb3d
to
ee12fbe
Compare
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.
I don't for-see any objections on the schema but let's wait for open-telemetry/semantic-conventions#2168 to get merged first before moving on with this one.
Should be merged now |
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.
Usually we have refactorings in standalone PRs first :): https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#refactoring-work.
But I would be fine keeping this here if others agree.
7293f7f
to
9645924
Compare
3f15293
to
0b73a42
Compare
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.
LGTM
…rom Deployments Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
0b73a42
to
833dae8
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