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(*) register the gateway resource type #2474

Merged
merged 1 commit into from
Aug 3, 2021
Merged

feat(*) register the gateway resource type #2474

merged 1 commit into from
Aug 3, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Aug 2, 2021

Summary

When the build flag is enabled, register the Gateway resource in the
kuma-cp and in kumactl. The latter adds a simple hook to let the plugin
modify the kumactl commands. This is likely to be refactored away as
more of the type bindings are generated.

Full changelog

N/A

Issues resolved

N/A

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.

@jpeach jpeach requested a review from a team as a code owner August 2, 2021 04:24
@jpeach
Copy link
Contributor Author

jpeach commented Aug 2, 2021

Likely to be refactored by #2469

@jpeach
Copy link
Contributor Author

jpeach commented Aug 2, 2021

Rebased. Looking at test failures.

When the build flag is enabled, register the Gateway resource in the
kuma-cp and in kumactl. The latter adds a simple hook to let the plugin
modify the kumactl commands. This is likely to be refactored away as
more of the type bindings are generated.

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

Codecov Report

Merging #2474 (8b90cf1) into master (36f7b75) will increase coverage by 0.04%.
The diff coverage is 26.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2474      +/-   ##
==========================================
+ Coverage   52.46%   52.50%   +0.04%     
==========================================
  Files         865      868       +3     
  Lines       48150    48198      +48     
==========================================
+ Hits        25260    25306      +46     
+ Misses      20855    20852       -3     
- Partials     2035     2040       +5     
Impacted Files Coverage Δ
app/kumactl/cmd/root.go 66.66% <0.00%> (-3.51%) ⬇️
app/kumactl/pkg/cmd/find.go 0.00% <0.00%> (ø)
pkg/plugins/runtime/gateway/kumactl/plugin.go 0.00% <0.00%> (ø)
app/kumactl/cmd/gateway.go 100.00% <100.00%> (ø)
pkg/plugins/runtime/gateway/enabled.go 100.00% <100.00%> (ø)
pkg/xds/cache/once/cache.go 87.17% <0.00%> (-7.70%) ⬇️
pkg/mads/v1/client/client.go 41.25% <0.00%> (-2.50%) ⬇️
api/observability/v1/mads.pb.go 34.53% <0.00%> (-1.04%) ⬇️
... and 8 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 36f7b75...8b90cf1. Read the comment docs.

@jpeach jpeach merged commit b8db547 into kumahq:master Aug 3, 2021
@jpeach jpeach deleted the feat/register-gateway-type branch August 3, 2021 03:19
mergify bot pushed a commit that referenced this pull request Aug 11, 2021
When the build flag is enabled, register the Gateway resource in the
kuma-cp and in kumactl. The latter adds a simple hook to let the plugin
modify the kumactl commands. This is likely to be refactored away as
more of the type bindings are generated.

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

# Conflicts:
#	pkg/plugins/runtime/gateway/enabled.go
#	pkg/plugins/runtime/gateway/kumactl/plugin.go
jpeach added a commit that referenced this pull request Aug 11, 2021
When the build flag is enabled, register the Gateway resource in the
kuma-cp and in kumactl. The latter adds a simple hook to let the plugin
modify the kumactl commands. This is likely to be refactored away as
more of the type bindings are generated.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit b8db547)
jpeach added a commit that referenced this pull request Aug 12, 2021
When the build flag is enabled, register the Gateway resource in the
kuma-cp and in kumactl. The latter adds a simple hook to let the plugin
modify the kumactl commands. This is likely to be refactored away as
more of the type bindings are generated.

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

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

3 participants