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

feat: basic working version of admission policy validator #530

Merged

Conversation

topliceanurazvan
Copy link
Member

This PR...

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@changeset-bot
Copy link

changeset-bot bot commented Sep 27, 2023

🦋 Changeset detected

Latest commit: f411a8b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@monokle/validation Patch

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

@topliceanurazvan topliceanurazvan requested review from WitoDelnat, f1ames and monojack and removed request for WitoDelnat September 27, 2023 15:01
@topliceanurazvan topliceanurazvan marked this pull request as draft September 28, 2023 08:51
@topliceanurazvan topliceanurazvan linked an issue Sep 28, 2023 that may be closed by this pull request
@@ -60,6 +61,10 @@ export class DefaultPluginLoader implements PluginLoader {
return new OpenPolicyAgentValidator(parser, wasmLoader);
});

this.register('admission-policy', ({parser}) => {
return new AdmissionPolicyValidator(parser);
Copy link
Collaborator

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.

@topliceanurazvan topliceanurazvan marked this pull request as ready for review October 2, 2023 09:07
@topliceanurazvan topliceanurazvan merged commit acd9b27 into main Oct 2, 2023
2 checks passed
@topliceanurazvan topliceanurazvan deleted the razvantopliceanu/feat/validating-admission-policy branch October 2, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValidatingAdmissionPolicy validator
2 participants