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 util functions #32

Merged
merged 1 commit into from
Jan 9, 2023
Merged

Feat: add util functions #32

merged 1 commit into from
Jan 9, 2023

Conversation

Somefive
Copy link
Collaborator

@Somefive Somefive commented Jan 9, 2023

Signed-off-by: Yin Da yd219913@alibaba-inc.com

Add

  1. AsStructured: convert unstructured to typed object
  2. SyncMap Load: support load whole map into SyncMap
  3. Map & Copy: support map & copy for map object

Signed-off-by: Yin Da <yd219913@alibaba-inc.com>
@Somefive Somefive requested a review from FogDong as a code owner January 9, 2023 12:23
@codecov
Copy link

codecov bot commented Jan 9, 2023

Codecov Report

Base: 90.90% // Head: 91.96% // Increases project coverage by +1.05% 🎉

Coverage data is based on head (0438710) compared to base (302624c).
Patch coverage: 92.71% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
+ Coverage   90.90%   91.96%   +1.05%     
==========================================
  Files          15       37      +22     
  Lines         352      747     +395     
==========================================
+ Hits          320      687     +367     
- Misses         19       42      +23     
- Partials       13       18       +5     
Flag Coverage Δ
unit-test 91.96% <92.71%> (+1.05%) ⬆️

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

Impacted Files Coverage Δ
util/k8s/namespace.go 55.55% <55.55%> (ø)
util/compression/gzip.go 60.00% <60.00%> (ø)
multicluster/client.go 83.67% <75.00%> (+1.06%) ⬆️
util/singleton/client.go 78.94% <78.94%> (ø)
util/compression/data.go 80.00% <80.00%> (ø)
controller/client/timeout_client.go 92.85% <92.85%> (ø)
controller/client/controller_client.go 80.64% <100.00%> (+0.64%) ⬆️
controller/client/flags.go 100.00% <100.00%> (ø)
controller/client/monitor_client.go 100.00% <100.00%> (ø)
controller/reconciler/context.go 100.00% <100.00%> (ø)
... and 20 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Somefive Somefive merged commit 7a0761e into kubevela:main Jan 9, 2023
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.

2 participants