Skip to content

Code-manager hooks: Make URL parameters configureable #57

@bastelfreak

Description

@bastelfreak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions