-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: basic working version of admission policy validator #530
feat: basic working version of admission policy validator #530
Conversation
🦋 Changeset detectedLatest commit: f411a8b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -60,6 +61,10 @@ export class DefaultPluginLoader implements PluginLoader { | |||
return new OpenPolicyAgentValidator(parser, wasmLoader); | |||
}); | |||
|
|||
this.register('admission-policy', ({parser}) => { | |||
return new AdmissionPolicyValidator(parser); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how big this module is given that it contains Pako. On NPM it mentions its 1.64MB. Maybe we can dynamically import this module here so that it gets codesplit.
packages/validation/src/validators/admission-policy/validator.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Wito <[email protected]>
This PR...
Changes
Fixes
Checklist