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(kumactl) remove kumactl plugin hooks #2508

Merged
merged 1 commit into from
Aug 7, 2021
Merged

chore(kumactl) remove kumactl plugin hooks #2508

merged 1 commit into from
Aug 7, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 6, 2021

Summary

The only user of the kumactl plugin hooks was the gateway plugin.
Improved protobuf codegen means that we don't need this mechanism to
register gateway types for kumactl any more, and we can consolidate the
registration code in the gateway plugin.

Full changelog

N/A

Issues resolved

Fix #2503

Documentation

N/A

Testing

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

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

The only user of the kumactl plugin hooks was the gateway plugin.
Improved protobuf codegen means that we don't need this mechanism to
register gateway types for kumactl any more, and we can consolidate the
registration code in the gateway plugin.

This fixes #2503.

Signed-off-by: James Peach <james.peach@konghq.com>
@jpeach jpeach requested a review from a team as a code owner August 6, 2021 04:19
@jpeach jpeach requested a review from lahabana August 6, 2021 04:19
@codecov-commenter
Copy link

Codecov Report

Merging #2508 (6be2fed) into master (686935a) will increase coverage by 0.03%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2508      +/-   ##
==========================================
+ Coverage   52.19%   52.23%   +0.03%     
==========================================
  Files         866      865       -1     
  Lines       48304    48281      -23     
==========================================
+ Hits        25214    25221       +7     
+ Misses      21050    21016      -34     
- Partials     2040     2044       +4     
Impacted Files Coverage Δ
app/kumactl/cmd/root.go 73.68% <0.00%> (+7.01%) ⬆️
pkg/plugins/runtime/gateway/enabled.go 100.00% <ø> (ø)
pkg/plugins/runtime/gateway/register/enabled.go 100.00% <100.00%> (ø)
pkg/kds/client/sink.go 47.72% <0.00%> (-4.55%) ⬇️
pkg/mads/v1/client/client.go 41.25% <0.00%> (-2.50%) ⬇️
api/observability/v1/mads.pb.go 34.53% <0.00%> (-1.04%) ⬇️
pkg/core/resources/manager/cache.go 81.81% <0.00%> (+2.59%) ⬆️
pkg/xds/cache/once/cache.go 94.87% <0.00%> (+7.69%) ⬆️
pkg/core/bootstrap/autoconfig.go 54.46% <0.00%> (+8.03%) ⬆️

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 686935a...6be2fed. Read the comment docs.

@jpeach jpeach merged commit 9ab4c8f into kumahq:master Aug 7, 2021
mergify bot pushed a commit that referenced this pull request Aug 9, 2021
(cherry picked from commit 9ab4c8f)

# Conflicts:
#	pkg/plugins/runtime/gateway/enabled.go
jpeach added a commit that referenced this pull request Aug 9, 2021
jpeach added a commit that referenced this pull request Aug 9, 2021
(cherry picked from commit 9ab4c8f)
Signed-off-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 11, 2021
(cherry picked from commit 9ab4c8f)
Signed-off-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 12, 2021
(cherry picked from commit 9ab4c8f)
Signed-off-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 12, 2021
(cherry picked from commit 9ab4c8f)
Signed-off-by: James Peach <james.peach@konghq.com>

Co-authored-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 12, 2021
Remove files that were left over from the previous backport in #2519.

Signed-off-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 12, 2021
Remove files that were left over from the previous backport in #2519.

Signed-off-by: James Peach <james.peach@konghq.com>
jpeach added a commit that referenced this pull request Aug 12, 2021
…or` (backport #2511) (#2527)

* chore(kumactl) remove kumactl plugin hooks (#2508)

Remove files that were left over from the previous backport in #2519.

Signed-off-by: James Peach <james.peach@konghq.com>

* chore(tools): Simplify resource-gen.go by generating`ResourceDescriptor` (#2511)

This descriptor defines everything there is about a resource:

- kds
- kumactl
- ws

We then simplify a lot of the redundant code to use this descriptor.
While refactoring some of the deep references to the global registry were removed

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit 5721243)

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

Get rid of kumactl plugins
4 participants