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

Fix deck gateway apply #1508

Merged
merged 10 commits into from
Jan 29, 2025
Merged

Fix deck gateway apply #1508

merged 10 commits into from
Jan 29, 2025

Conversation

mheap
Copy link
Member

@mheap mheap commented Jan 27, 2025

The deck gateway apply command added in v1.43.0 added additional HTTP calls to discover which functions are enabled. This does not work well when using an RBAC user with restricted permissions.

This change removes those additional checks and delegates the lookup of foreign keys for partial applications to go-database-reconciler

@mheap mheap force-pushed the fix-apply-command branch from a24312d to e56ac2f Compare January 27, 2025 15:35
@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2025

Codecov Report

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

Project coverage is 29.28%. Comparing base (34099fc) to head (4de5886).

Files with missing lines Patch % Lines
cmd/common.go 0.00% 25 Missing ⚠️
cmd/common_konnect.go 0.00% 2 Missing ⚠️
cmd/gateway_apply.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 ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1508      +/-   ##
==========================================
+ Coverage   29.22%   29.28%   +0.05%     
==========================================
  Files          62       62              
  Lines        6666     6639      -27     
==========================================
- Hits         1948     1944       -4     
+ Misses       4580     4556      -24     
- Partials      138      139       +1     

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

@mheap mheap force-pushed the fix-apply-command branch 2 times, most recently from d2fe4f1 to 9aded15 Compare January 27, 2025 16:31
@mheap mheap changed the title Fix apply command Fix deck gateway apply Jan 27, 2025
cmd/common.go Show resolved Hide resolved
cmd/common_konnect.go Outdated Show resolved Hide resolved
tests/integration/apply_test.go Outdated Show resolved Hide resolved
tests/integration/apply_test.go Outdated Show resolved Hide resolved
tests/integration/apply_test.go Outdated Show resolved Hide resolved
tests/integration/apply_test.go Outdated Show resolved Hide resolved
tests/integration/apply_test.go Show resolved Hide resolved
@mheap mheap force-pushed the fix-apply-command branch from 1529774 to 120df79 Compare January 28, 2025 11:22
@mheap mheap requested a review from pmalek January 28, 2025 13:54
@mheap mheap force-pushed the fix-apply-command branch 2 times, most recently from 580a39c to 2d486c0 Compare January 28, 2025 14:36
@mheap mheap force-pushed the fix-apply-command branch from 2d486c0 to 4de5886 Compare January 28, 2025 14:37
@mheap mheap marked this pull request as ready for review January 28, 2025 14:37
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

Please add a changelog entry for this.

👍

@mheap
Copy link
Member Author

mheap commented Jan 29, 2025

It looks as though the changelog is added at release time based on #1502

Merging, and can issue a followup PR if needed

@mheap mheap merged commit 6996cd9 into main Jan 29, 2025
23 checks passed
@mheap mheap deleted the fix-apply-command branch January 29, 2025 11:21
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.

3 participants