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: add uniqueness check of spec.prefix of KongVault #5412

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

randmonkey
Copy link
Contributor

@randmonkey randmonkey commented Jan 9, 2024

What this PR does / why we need it:

Check uniqueness of spec.prefix of KongVault in all "managed" KongVaults by listing all items in the storer.

Which issue this PR fixes:

fixes #5395

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@randmonkey randmonkey requested a review from a team as a code owner January 9, 2024 07:08
@randmonkey randmonkey marked this pull request as draft January 9, 2024 07:10
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d5f068d) 69.6% compared to head (93c2913) 69.7%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5412     +/-   ##
=======================================
+ Coverage   69.6%   69.7%   +0.1%     
=======================================
  Files        176     176             
  Lines      22554   22565     +11     
=======================================
+ Hits       15700   15734     +34     
+ Misses      5925    5904     -21     
+ Partials     929     927      -2     

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

@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 9, 2024
@randmonkey randmonkey force-pushed the feat/validate_vault_prefix_uniqueness branch from eaf998b to d1f8549 Compare January 9, 2024 10:23
@randmonkey randmonkey marked this pull request as ready for review January 9, 2024 10:23
internal/admission/validator.go Outdated Show resolved Hide resolved
test/integration/webhook_test.go Outdated Show resolved Hide resolved
@randmonkey randmonkey force-pushed the feat/validate_vault_prefix_uniqueness branch 2 times, most recently from cac7cab to 793a1eb Compare January 10, 2024 07:47
@randmonkey randmonkey force-pushed the feat/validate_vault_prefix_uniqueness branch from 6370651 to 93c2913 Compare January 17, 2024 02:21
test/integration/webhook_test.go Show resolved Hide resolved
@randmonkey randmonkey merged commit 658a18f into main Jan 17, 2024
37 checks passed
@randmonkey randmonkey deleted the feat/validate_vault_prefix_uniqueness branch January 17, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate uniqueness of prefix field in KongVault resources
3 participants