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

Add deck gateway apply command #1459

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add deck gateway apply command #1459

wants to merge 3 commits into from

Conversation

mheap
Copy link
Member

@mheap mheap commented Dec 2, 2024

Depends on Kong/go-database-reconciler#143 being merged and released


The deck gateway apply command allows you to apply partial configuration to a running Gateway instance.

To do this, it runs a sync with the NoDeletes flag enabled. This means that only new and existing resources are updated. Existing resources that do not exist in the declarative configuration file are left untouched.

mheap added 2 commits December 2, 2024 17:14
The `deck gateway apply` command allows you to apply partial
configuration to a running Gateway instance.

To do this, it runs a `sync` with the NoDeletes flag enabled.
This means that only new and existing resources are updated.
Existing resources that do not exist in the declarative
configuration file are left untouched.
@mheap mheap requested a review from Prashansa-K December 2, 2024 17:50
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 50 lines in your changes missing coverage. Please review.

Project coverage is 27.35%. Comparing base (4da4246) to head (5559d36).

Files with missing lines Patch % Lines
cmd/gateway_apply.go 0.00% 34 Missing ⚠️
tests/integration/test_utils.go 0.00% 9 Missing ⚠️
cmd/common.go 0.00% 2 Missing ⚠️
cmd/common_konnect.go 0.00% 1 Missing ⚠️
cmd/gateway_diff.go 0.00% 1 Missing ⚠️
cmd/gateway_reset.go 0.00% 1 Missing ⚠️
cmd/gateway_sync.go 0.00% 1 Missing ⚠️
cmd/root.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1459      +/-   ##
==========================================
- Coverage   27.55%   27.35%   -0.20%     
==========================================
  Files          61       62       +1     
  Lines        6294     6338      +44     
==========================================
  Hits         1734     1734              
- Misses       4432     4476      +44     
  Partials      128      128              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mheap mheap marked this pull request as draft December 2, 2024 20:28
@mheap
Copy link
Member Author

mheap commented Dec 2, 2024

Converting to draft. I'm adding tests and they're uncovering some issues

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