Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code-manager hooks: Make URL parameters configureable #57

Open
bastelfreak opened this issue Sep 25, 2024 · 0 comments
Open

Code-manager hooks: Make URL parameters configureable #57

bastelfreak opened this issue Sep 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bastelfreak
Copy link

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.

@bastelfreak bastelfreak added the enhancement New feature or request label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant