Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix][fn] Make /version return correct version (#20047)
### Motivation The `/version` endpoint for functions currently returns `{"version":"version.number"}` instead of an actual version number. This PR fixes that. One observation is that the broker's `/version` endpoint returns a plain string: https://github.com/apache/pulsar/blob/82237d3684fe506bcb6426b3b23f413422e6e4fb/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/BrokersBase.java#L527-L535 ### Modifications * Return the actual version. * Use a static field to decrease the cost of this endpoint. ### Verifying this change This is a trivial change. ### Documentation - [x] `doc-not-needed` This fixes an endpoint, no docs are needed. ### Matching PR in forked repository PR in forked repository: Skipping PR since this is so trivial
- Loading branch information