Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
feature Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant