kwenZh commented on issue #14611:
URL: https://github.com/apache/pulsar/issues/14611#issuecomment-1062518570


   > you can customize your apply-config-from-env.py script, in `# Update 
values from Env` block, add some code like:
   > 
   > ```
   > if k.startswith('advertisedListeners'):
   >       v = advertisedListenersValue(os.environ['POD_NAME'])
   >       lines[idx] = '%s=%s\n' % (k, v)
   > ```
   
   fine,   The problem of using your own scripts to render broker.conf is 
simple,  I struggled with the default script and didn't see the logic to handle 
the `advertisedListeners`, thank you ,  I understand !
   
   
   
   > you can customize your apply-config-from-env.py script, in `# Update 
values from Env` block, add some code like:
   > 
   > ```
   > if k.startswith('advertisedListeners'):
   >       v = advertisedListenersValue(os.environ['POD_NAME'])
   >       lines[idx] = '%s=%s\n' % (k, v)
   > ```
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to