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

feat: grant ebpf k8s collector job watching permission. #1346

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

hyfj44255
Copy link
Contributor

@hyfj44255 hyfj44255 commented Sep 15, 2024

Description

opentelemetry-network added k8s collector handle pods owned by a CronJob feature so we need to grant EBPF k8s collector job watching permission in k8s-collector-clusterrole.

Fixes # (issue)

#1349

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Go to open-telemetry-opentelemetry-helm-chartsrepo root directory.

cd opentelemetry-helm-charts

Create a kind cluster same as the one in repo's Github action

kind create cluster --name ebpf-cluster --config ./.github/kind-1.24.yaml

Go to EBPF chart

cd charts/opentelemetry-ebpf

Run helm install to install the EBPF chart

helm install ebpf-chart-test . -f ci/requests-limits-values.yaml -n ebpf-chart-test

Run command to get ebpf k8s collector container - k8s-watcher's log, and search 'jobs.batch is forbidden' , if not able to search any error related to "not able to list job" means this PR's changing is working

kubectl logs `kubectl get pod -n ebpf-chart-test |grep ebpf-chart-test-opentelemetry-ebpf-k8s-collector | \
awk -F ' ' '{print $1}'` -n ebpf-chart-test -c k8s-watcher | \
grep 'jobs.batch is forbidden'

@hyfj44255
Copy link
Contributor Author

Hi @TylerHelmuth could you take a look this PR when you get chance ,it's related to adjust the helm chart according to the change of Opentelemetry eBPF. #1349. BTW the I'm working on fixing the CI failure

@hyfj44255 hyfj44255 requested a review from a team as a code owner September 20, 2024 07:12
@kayhern kayhern force-pushed the feature/grant-ebpf-k8s-collector-job-watching-permission branch from 3a1734b to 323ff85 Compare September 20, 2024 13:28
@hyfj44255
Copy link
Contributor Author

Hi @TylerHelmuth the previous lint -test issue was fixed would it be okay if you help trigger the lint-test again?

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.

1 participant