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: support online validation with Konnect #1335

Merged
merged 16 commits into from
Oct 21, 2024
Merged

Conversation

GGabriele
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2024

Codecov Report

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

Project coverage is 27.51%. Comparing base (b09aa3e) to head (dc4737c).

Files with missing lines Patch % Lines
cmd/gateway_validate.go 0.00% 29 Missing ⚠️
tests/integration/test_utils.go 0.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1335      +/-   ##
==========================================
- Coverage   27.65%   27.51%   -0.14%     
==========================================
  Files          61       61              
  Lines        6241     6272      +31     
==========================================
  Hits         1726     1726              
- Misses       4392     4423      +31     
  Partials      123      123              

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

@@ -181,6 +181,9 @@ func (v *Validator) Validate(formatVersion semver.Version) []error {
if err := v.entities(v.state.FilterChains, "filter_chains"); err != nil {
allErr = append(allErr, err...)
}
if err := v.entities(v.state.Vaults, "vaults"); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I lack some context here. How is this addition related to this PR? @GGabriele

Copy link
Member

Choose a reason for hiding this comment

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

ping: @GGabriele. Do you mind chiming in here? 🙇

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Vaults validation is currently completely missing from decK. This is not strictly related to the konnect implementation, so we can move it into a separate commit if we want.

Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to extract it if that's the case.

Additionally, if possible I'd suggest to mark this with a comment why this is needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

I have created a separate PR for this @pmalek
#1421

Also, this change adds a conditional that ensures that rbac flag used
with konnect mode, gives an legible error to the user.
@Prashansa-K
Copy link
Contributor

Other e2e tests for deck validate commands are added here: #1415

Kept this PR scoped to Konnect stuff.

@Prashansa-K Prashansa-K marked this pull request as ready for review October 10, 2024 06:00
@Prashansa-K
Copy link
Contributor

@pmalek Could you please help us with a review here? We have extended deck gateway validate command to work with Konnect as well. Changelog will be added during release time, as is the practice we follow here with deck releases currently.

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.

I've left some minor comments but to me this looks pretty solid 👍

tests/integration/test_utils.go Outdated Show resolved Hide resolved
tests/integration/validate_test.go Outdated Show resolved Hide resolved
tests/integration/validate_test.go Outdated Show resolved Hide resolved
tests/integration/test_utils.go Show resolved Hide resolved
@Prashansa-K Prashansa-K merged commit e09888d into main Oct 21, 2024
19 checks passed
@Prashansa-K Prashansa-K deleted the feat/konnect_validate branch October 21, 2024 14:13
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.

5 participants