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

Filter extension registry #20

Closed
szkiba opened this issue Oct 9, 2023 · 1 comment
Closed

Filter extension registry #20

szkiba opened this issue Oct 9, 2023 · 1 comment
Labels
feature Feature Request

Comments

@szkiba
Copy link
Collaborator

szkiba commented Oct 9, 2023

Feature Description

In certain runtime environments, the use of arbitrary extensions is not allowed. There is a need to limit the extensions that can be used.

Suggested Solution (optional)

This use case can be solved most flexibly by narrowing down the extension registry. The content of the extension registry can be narrowed using a jmespath syntax filter expression. Extensions can be filtered based on any property.

allow only officially supported extensions

k6x --filter "[?contains(tiers,'Official')]" run script.js

allow only cloud enabled extensions

k6x --filter "[?cloudEnabled == true]" run script.js

Already existing or connected issues / PRs (optional)

No response

@szkiba szkiba added the feature Feature Request label Oct 9, 2023
@szkiba szkiba mentioned this issue Oct 10, 2023
@szkiba
Copy link
Collaborator Author

szkiba commented Oct 10, 2023

The v0.4.0 release includes this feature.

@szkiba szkiba closed this as completed Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant