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: handle messageExpression #536

Merged

Conversation

topliceanurazvan
Copy link
Member

Changes

  • Handle messageExpression

Checklist

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 3, 2023

🦋 Changeset detected

Latest commit: 9f4e7f5

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

@@ -321,4 +341,8 @@ export class AdmissionPolicyValidator extends AbstractPlugin {
level,
});
}

private evaluateCelExpression(expression: string, params: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave it for now but making the Params a Record<string, any> and shifting down the encoding (yaml.stringify) would make this a tiny bit better abstraction.

@topliceanurazvan topliceanurazvan merged commit 16b7d70 into main Oct 3, 2023
2 checks passed
@topliceanurazvan topliceanurazvan deleted the razvantopliceanu/feat/improve-k8s-validation-rules branch October 3, 2023 10:57
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.

2 participants