Skip to content

feat(kubernetesEvents): add useK8sEventsReceiver feature flag - #2222

Closed
vanshiz wants to merge 2 commits into
open-telemetry:mainfrom
vanshiz:vanshiz/2209-usek8seventsreceiver
Closed

feat(kubernetesEvents): add useK8sEventsReceiver feature flag#2222
vanshiz wants to merge 2 commits into
open-telemetry:mainfrom
vanshiz:vanshiz/2209-usek8seventsreceiver

Conversation

@vanshiz

@vanshiz vanshiz commented May 23, 2026

Copy link
Copy Markdown
Contributor

Closes #2209

Changes

  • Added useK8sEventsReceiver root-level feature flag (default: false)
  • When true, the kubernetesEvents preset uses the k8s_events receiver
    instead of k8sobjects
  • Updated RBAC in clusterrole.yaml to use correct API group per receiver
  • Added events.enabled option to kubernetesObjects preset for users
    who prefer collecting events via k8sobjects
  • Added CI test for the new flag
  • Updated values.schema.json

Migration path

Per the plan in #2209, this flag defaults to false. It will default to
true in a future release, then be removed entirely.

@vanshiz
vanshiz force-pushed the vanshiz/2209-usek8seventsreceiver branch from c6ef69c to da36bd7 Compare May 23, 2026 08:19
# When enabled, the kubernetesEvents preset uses the dedicated k8s_events receiver
# instead of the k8sobjects receiver. This flag defaults to false and will default
# to true in a future release before being removed.
useK8sEventsReceiver: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lets nest this under the kubernetesEvents preset.

@github-actions

Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions Bot added the Stale label Jun 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[opentelemetry-collector]: Update kuberenetsEvents preset to use the k8s_events receiver

2 participants