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

chore(kuma-dp) refactor dataplane resource loading #2252

Merged
merged 1 commit into from
Jun 30, 2021
Merged

chore(kuma-dp) refactor dataplane resource loading #2252

merged 1 commit into from
Jun 30, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Jun 30, 2021

Summary

Refactor the dataplane resource loading to make it oblivious to
the underlying resource types. This will later allow us to add
support for more dataplane resource types without changing any
code.

Full changelog

N/A

Issues resolved

N/A

Documentation

N/A

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Refactor the dataplane resource loading to make it oblivious to
the underlying resource types. This will later allow us to add
support for more dataplane resource types without changing any
code.

Signed-off-by: James Peach <james.peach@konghq.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2252 (789b1f5) into master (3596f27) will increase coverage by 0.28%.
The diff coverage is 76.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2252      +/-   ##
==========================================
+ Coverage   51.77%   52.05%   +0.28%     
==========================================
  Files         909      913       +4     
  Lines       41004    41051      +47     
==========================================
+ Hits        21229    21371     +142     
+ Misses      17741    17621     -120     
- Partials     2034     2059      +25     
Impacted Files Coverage Δ
app/kuma-dp/cmd/dataplane.go 50.00% <50.00%> (+8.33%) ⬆️
app/kuma-dp/cmd/run.go 70.83% <75.00%> (-0.50%) ⬇️
pkg/core/resources/model/rest/resource.go 66.66% <100.00%> (+7.40%) ⬆️
pkg/kds/client/sink.go 43.58% <0.00%> (-5.13%) ⬇️
pkg/mads/v1/client/client.go 40.84% <0.00%> (-2.82%) ⬇️
api/observability/v1/mads.pb.go 34.64% <0.00%> (-1.31%) ⬇️
api/internal/util/proto/proto.go 62.50% <0.00%> (ø)
...kg/plugins/resources/k8s/native/pkg/test/within.go 100.00% <0.00%> (ø)
api/internal/util/proto/types.go 50.00% <0.00%> (ø)
...k8s/native/controllers/proxytemplate_controller.go 0.00% <0.00%> (ø)
... and 15 more

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 3596f27...789b1f5. Read the comment docs.

@jpeach jpeach marked this pull request as ready for review June 30, 2021 09:11
@jpeach jpeach requested a review from a team as a code owner June 30, 2021 09:11
Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

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

lgtm

@jpeach jpeach merged commit b2e7522 into kumahq:master Jun 30, 2021
@jpeach jpeach deleted the chore/dp-resource-load branch June 30, 2021 21:37
mergify bot pushed a commit that referenced this pull request Aug 12, 2021
Refactor the dataplane resource loading to make it oblivious to
the underlying resource types. This will later allow us to add
support for more dataplane resource types without changing any
code.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit b2e7522)

# Conflicts:
#	app/kuma-dp/cmd/run.go
jpeach added a commit that referenced this pull request Aug 12, 2021
Refactor the dataplane resource loading to make it oblivious to
the underlying resource types. This will later allow us to add
support for more dataplane resource types without changing any
code.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit b2e7522)
jpeach added a commit that referenced this pull request Aug 12, 2021
Refactor the dataplane resource loading to make it oblivious to
the underlying resource types. This will later allow us to add
support for more dataplane resource types without changing any
code.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit b2e7522)

Co-authored-by: James Peach <james.peach@konghq.com>
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

4 participants