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

kmap #2354

Merged
merged 6 commits into from
Nov 19, 2021
Merged

kmap #2354

merged 6 commits into from
Nov 19, 2021

Conversation

dprotaso
Copy link
Member

@dprotaso dprotaso commented Nov 19, 2021

  • move some functional map operations to it's own package kmap
  • include a new accessor helper for migrating key names
  • use kmap methods in various knative.dev/pkg subpackages
  • add deprecation notices

This PR has two purposes:

It's important that this package has no external dependencies (especially k8s) to help with queue proxy size issues

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 19, 2021
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 19, 2021
@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #2354 (0743cb6) into main (5708c4c) will increase coverage by 0.05%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2354      +/-   ##
==========================================
+ Coverage   63.55%   63.60%   +0.05%     
==========================================
  Files         227      228       +1     
  Lines        9834     9851      +17     
==========================================
+ Hits         6250     6266      +16     
- Misses       3307     3309       +2     
+ Partials      277      276       -1     
Impacted Files Coverage Δ
kmap/lookup.go 75.00% <75.00%> (ø)
apis/duck/v1/status_types.go 100.00% <100.00%> (ø)
apis/duck/v1beta1/status_types.go 100.00% <100.00%> (ø)
kmap/map.go 100.00% <100.00%> (ø)
reconciler/retry.go 100.00% <0.00%> (ø)
test/gcs/mock/mock.go 91.39% <0.00%> (+1.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5708c4c...0743cb6. Read the comment docs.

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

Generally LGTM.

kmap/accessor.go Outdated Show resolved Hide resolved
@dprotaso
Copy link
Member Author

/hold going to update some godoc

unit test failure is some other flake

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2021
@dprotaso
Copy link
Member Author

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2021
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, mattmoor

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:

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

@knative-prow-robot knative-prow-robot merged commit a99300d into knative:main Nov 19, 2021
@dprotaso dprotaso deleted the kmap branch November 19, 2021 17:07
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants