Permission Denied Exception while using Worker versioning

Hi

I am getting PERMISSION_DENIED: Worker versioning is disabled on this namespace.

Need guidance on how to enable namespace for worker versioning in JavaSDK.

Thanks a lot for the help
Best Regards
Krishnendu

You will need to enable Worker Versioning feature in your dynamic config, e.g.

frontend.workerVersioningDataAPIs:
  - value: true
frontend.workerVersioningWorkflowAPIs:
  - value: true
worker.buildIdScavengerEnabled:
  - value: true

Thanks a lot for the help @Tao.

I included the values in docker.yaml file inside /dynamicconfig folder but still getting the issue.
Please suggest if I am making some mistake.

Thank you
Best Regards
Krishnendu

Can you check if docker.yaml is actually referenced by DYNAMIC_CONFIG_FILE_PATH e.g. https://github.com/temporalio/docker-compose/blob/8c25fc0281f46ffb375e1e05aff67e9669e83445/docker-compose.yml#L43

Thank you @tao