pulsar-helm-chart
pulsar-helm-chart copied to clipboard
Error Reading Functions Worker ConfigMap
Describe the bug When enabling functions, the broker throws the following error:
Error while trying to fetch configmap pulsar-functions-worker-config at namespace
To Reproduce Steps to reproduce the behavior:
- Set Components.functions to True (true by default)
- View broker logs
- See error
Expected behavior
I think the role needs to be bound to the broker service account. It currently creates another service account named pulsar-functions-worker
. Not sure if that SA is used by the functions, but the pulsar-broker-acct
does not have access to the function worker config map.
What is the pulsar-functions-worker
used for? Is it used by the functions? If so we can add read access to the pulsar-broker-acct
role that is bound so it can read the ConfigMap.
Sadly this error still persists even in 2.7 Still can't figure out the error, even created the clusterrole from stretch again like described in Function Docs
the functions-worker-config map is a feature which doesn't work at all. it is explained at https://github.com/apache/pulsar-helm-chart/pull/392#discussion_r1498309625 . I have another comment where the Functions Worker configuration is explained: https://github.com/apache/pulsar-helm-chart/issues/382#issuecomment-1957951168
I'm going to fix this issue by removing the pulsar-function-worker-config map since it's just causing confusion and doesn't work.