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: add cel language support #483

Merged
merged 23 commits into from
Sep 20, 2024
Merged

Conversation

eddycharly
Copy link
Member

Explanation

Add cel language support.

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 52.01794% with 107 lines in your changes missing coverage. Please review.

Project coverage is 24.11%. Comparing base (4c135bc) to head (bdc7b59).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/core/assertion/assertion.go 26.47% 24 Missing and 1 partial ⚠️
pkg/core/templating/compiler.go 60.00% 16 Missing and 8 partials ⚠️
pkg/core/projection/projection.go 14.28% 18 Missing ⚠️
pkg/core/templating/cel/val.go 42.85% 12 Missing ⚠️
pkg/core/templating/cel/env.go 59.09% 6 Missing and 3 partials ⚠️
pkg/core/templating/templating.go 50.00% 4 Missing and 2 partials ⚠️
pkg/core/templating/cel/cel.go 70.00% 2 Missing and 1 partial ⚠️
pkg/apis/policy/v1alpha1/assertion_tree.go 0.00% 2 Missing ⚠️
pkg/commands/jp/query/command.go 0.00% 2 Missing ⚠️
pkg/engine/match/match.go 33.33% 2 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #483      +/-   ##
==========================================
+ Coverage   23.39%   24.11%   +0.72%     
==========================================
  Files          87       91       +4     
  Lines        4100     4205     +105     
==========================================
+ Hits          959     1014      +55     
- Misses       3053     3093      +40     
- Partials       88       98      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@eddycharly eddycharly marked this pull request as draft September 19, 2024 11:22
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@eddycharly eddycharly force-pushed the cel-support branch 2 times, most recently from c38e901 to 746fcb0 Compare September 19, 2024 22:46
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
go.mod Show resolved Hide resolved
@eddycharly eddycharly merged commit 06f036d into kyverno:main Sep 20, 2024
14 checks passed
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.

3 participants