sustainable-computing-io / kepler-operator

Kepler Operator
Apache License 2.0
25 stars 26 forks source link

feat: Use Kepler annotation to choose bcc or libbpf kepler image #293

Closed vimalk78 closed 10 months ago

vimalk78 commented 10 months ago

This PR reads value of annotation "app.kubernetes.io/kepler-bpf-attach-method" on Kepler object to decide which bpf type image to be deployed. If the value is "libbpf" , the image quay.io/sustainable_computing_io/kepler:release-0.6.1-libbpf is chosen, else quay.io/sustainable_computing_io/kepler:release-0.6.1 is used.

This is a temporary fix to let users choose libbpf image till kepler upstream makes libbpf as the default attach method.

fixes: https://issues.redhat.com/browse/POWERMON-166

BGrasnick commented 10 months ago

This is great, thank you @vimalk78 @sthaha!