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

Use k8s client lib v0.30.1 #435

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

tamalsaha
Copy link
Contributor

No description provided.

@sozercan
Copy link
Member

sozercan commented May 21, 2024

@tamalsaha thanks for the pr! can you run make vendor manifests and commit the changes when you get a chance?

@tamalsaha
Copy link
Contributor Author

@sozercan done. PTAL!

@davidgamero
Copy link

+1

@tamalsaha
Copy link
Contributor Author

tamalsaha commented Jul 23, 2024

There is a breaking api change between 0.30.0 and 0.30.3 . It is worth exploring if that should be fixed here.
https://github.com/kubernetes/kubernetes/blob/6834a1ef3d928f6f7e00e801a43c37bead75dbe9/pkg/apis/admissionregistration/validation/validation.go#L1304

compiler, err := plugincel.NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), strictCost))

The strictCost boolean parameter has been newly added

@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 52.83%. Comparing base (76869f8) to head (a05810c).
Report is 28 commits behind head on master.

Files Patch % Lines
...straint/pkg/client/drivers/k8scel/schema/schema.go 0.00% 3 Missing ⚠️
...kg/client/drivers/k8scel/transform/cel_snippets.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
- Coverage   54.68%   52.83%   -1.85%     
==========================================
  Files          71      104      +33     
  Lines        5241     6518    +1277     
==========================================
+ Hits         2866     3444     +578     
- Misses       2073     2713     +640     
- Partials      302      361      +59     
Flag Coverage Δ
unittests 52.83% <37.50%> (-1.85%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@ritazh
Copy link
Member

ritazh commented Jul 23, 2024

There is a breaking api change between 0.30.0 and 0.30.3 . It is worth exploring if that should be fixed here. https://github.com/kubernetes/kubernetes/blob/6834a1ef3d928f6f7e00e801a43c37bead75dbe9/pkg/apis/admissionregistration/validation/validation.go#L1304

compiler, err := plugincel.NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), strictCost))

The strictCost boolean parameter has been newly added

We could deal with it as a separate follow up PR to keep this PR smaller. wdyt?

@tamalsaha
Copy link
Contributor Author

There is a breaking api change between 0.30.0 and 0.30.3 . It is worth exploring if that should be fixed here. https://github.com/kubernetes/kubernetes/blob/6834a1ef3d928f6f7e00e801a43c37bead75dbe9/pkg/apis/admissionregistration/validation/validation.go#L1304
compiler, err := plugincel.NewCompositedCompiler(environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), strictCost))
The strictCost boolean parameter has been newly added

We could deal with it as a separate follow up PR to keep this PR smaller. wdyt?

Sounds good to me.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha changed the title Use k8s client lib v0.30.0 Use k8s client lib v0.30.1 Jul 23, 2024
@sozercan
Copy link
Member

Looks like this breaks GK tests (these are informative), we'll need to handle that when we vendor this in.

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@sozercan sozercan merged commit 437ab95 into open-policy-agent:master Aug 2, 2024
7 of 8 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.

None yet

5 participants