Skip to content
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

Add replicaset resources by default when using the k8sattributesprocessor #2832

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

iblancasa
Copy link
Contributor

Fixes #2823

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
@iblancasa iblancasa requested a review from a team April 9, 2024 09:25
@iblancasa iblancasa changed the title Add replicaset resources by default Add replicaset resources by default when using the k8sattributesprocessor Apr 9, 2024
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Comment on lines 65 to 69
{
APIGroups: []string{"extensions"},
Resources: []string{"replicasets"},
Verbs: []string{"get", "watch", "list"},
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? I don't think any of our supported K8s versions ship this version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When it is not added, the processor doesn't work: #2823, open-telemetry/opentelemetry-collector-contrib#32247

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean extensions/replicaset specifically. That API group was removed in K8s 1.16: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#replicaset-v116

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Let me test if it works without them 🤔

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
@jaronoff97 jaronoff97 merged commit 9160ce0 into open-telemetry:main Apr 10, 2024
31 checks passed
@iblancasa iblancasa deleted the bug/2823 branch April 11, 2024 06:28
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…ssor (open-telemetry#2832)

* Add replicaset resources by default

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Add missing changelog

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix changelog

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Remove not needed permissions

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
rubenvp8510 pushed a commit to rubenvp8510/opentelemetry-operator that referenced this pull request May 7, 2024
…ssor (open-telemetry#2832)

* Add replicaset resources by default

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Add missing changelog

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Fix changelog

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

* Remove not needed permissions

Signed-off-by: Israel Blancas <iblancasa@gmail.com>

---------

Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to watch *v1.ReplicaSet and Failed to list *v1.ReplicaSet
3 participants