-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 kmap.Union to merge two maps #5660
Conversation
Thanks @dibyom for the suggestion. |
The following is the coverage report on the affected files.
|
Previously, we use self-defined helper function to merge two maps. Now, we use the existing [kmap.Union](https://pkg.go.dev/knative.dev/pkg@v0.0.0-20221014164553-b812affa3893/kmap#Union) method to achieve this functionality. Signed-off-by: Chuang Wang <chuangw@google.com>
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Add on to tektoncd#5660. Previously, we use too much self-invented code to merge two maps. Now we use the existing [kmap.Union](https://pkg.go.dev/knative.dev/pkg@v0.0.0-20221014164553-b812affa3893/kmap#Union) to merge maps. Signed-off-by: Chuang Wang <chuangw@google.com>
Add on to tektoncd#5660. Previously, we use too much self-invented code to merge two maps. Now we use the existing [kmap.Union](https://pkg.go.dev/knative.dev/pkg@v0.0.0-20221014164553-b812affa3893/kmap#Union) to merge maps. Signed-off-by: Chuang Wang <chuangw@google.com>
Add on to #5660. Previously, we use too much self-invented code to merge two maps. Now we use the existing [kmap.Union](https://pkg.go.dev/knative.dev/pkg@v0.0.0-20221014164553-b812affa3893/kmap#Union) to merge maps. Signed-off-by: Chuang Wang <chuangw@google.com>
Add on to tektoncd#5660. Previously, we use too much self-invented code to merge two maps. Now we use the existing [kmap.Union](https://pkg.go.dev/knative.dev/pkg@v0.0.0-20221014164553-b812affa3893/kmap#Union) to merge maps. Signed-off-by: Chuang Wang <chuangw@google.com>
Changes
/kind cleanup
Previously, we use self-defined helper function to merge two maps.
Now, we use the existing kmap.Union method to achieve this functionality.
Signed-off-by: Chuang Wang chuangw@google.com
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes