-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Use Case
Code-Manager has support for post environment hooks: https://www.puppet.com/docs/pe/2023.8/code_mgr_customizing#config_post_env_hooks
And there's an API endpoint for the classifier to refresh classes: https://www.puppet.com/docs/pe/2023.8/update_classes_endpoint
The classifier API can take an optional parameter for a specific environment. But I didn't see an option in the code manager config to set this. So calling the classifier API will always trigger a full refresh, which is quite resource intensive.
Describe the Solution You Would Like
Add an option to code-manager to use the deployed environment in the hook url.
Describe Alternatives You've Considered
A clear and concise description of any alternative solutions or features you've considered.
Additional Context
I would have provided a patch, but the source code is private and not accessible for partners.