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

apis/nfd: drop the private regexp caching field #1482

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Dec 1, 2023

Drop the private field for caching parsed regexp from the MatchExpression type. This tidies up the API type definition and not so tied with particular implementation details. The change also elimiates potential concurrency problems as no locking is in place in the API types.

If caching will be desired in the future, it's better to do it properly in a separate package, not directly in the API types.

Ref: #1477

Drop the private field for caching parsed regexp from the
MatchExpression type. This tidies up the API type definition and not so
tied with particular implementation details. The change also elimiates
potential concurrency problems as no locking is in place in the API
types.

If caching will be desired in the future, it's better to do it properly
in a separate package, not directly in the API types.
Copy link

netlify bot commented Dec 1, 2023

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 8d40524
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/6569dfdd0a50900008adb2c1
😎 Deploy Preview https://deploy-preview-1482--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 1, 2023
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

v1alpha2 is around the corner :)
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 14, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f0c353c7fa7616d97e692a3b3846061b69223b5a

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, marquiz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ArangoGutierrez,marquiz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

Merging #1482 (8d40524) into master (cc6df8e) will increase coverage by 4.67%.
Report is 41 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1482      +/-   ##
==========================================
+ Coverage   30.75%   35.42%   +4.67%     
==========================================
  Files          58       59       +1     
  Lines        7550     8118     +568     
==========================================
+ Hits         2322     2876     +554     
+ Misses       4977     4962      -15     
- Partials      251      280      +29     
Files Coverage Δ
pkg/apis/nfd/v1alpha1/expression.go 82.26% <100.00%> (+7.90%) ⬆️
pkg/apis/nfd/v1alpha1/zz_generated.deepcopy.go 25.89% <ø> (-0.21%) ⬇️

... and 10 files with indirect coverage changes

@k8s-ci-robot k8s-ci-robot merged commit 3ce5a1b into kubernetes-sigs:master Dec 14, 2023
12 checks passed
@marquiz marquiz deleted the devel/api-cleanup-2 branch December 14, 2023 11:45
@marquiz marquiz mentioned this pull request Dec 20, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants