flowchartsman edited a comment on issue #8929:
URL: https://github.com/apache/pulsar/issues/8929#issuecomment-743482306


   My suggestion would be something like the following:
   1) before spinning up the admin endpoint, look for a file in a known 
location (following mongo's example, this would be something like 
`/docker-entrypoint-init.d/pulsar-init`
   2) If this file is found, process it
   3) otherwise, proceed with `sample` tenant/namespace creation
   
   As for the format of the file, one option would be to simply treat it as a 
newline-separated list of arguments to `pulsar-admin` invocations:
   
   ```
   tenants create test
   namespaces create test/admin
   namespaces create test/news
   namespaces create test/emails
   namespaces set-retention --size-1 --time 3d test/news
   namespaces set-publish-rate -m 10 test/emails
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to