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 KongVault CRD #5354

Merged
merged 4 commits into from
Dec 27, 2023
Merged

feat: add KongVault CRD #5354

merged 4 commits into from
Dec 27, 2023

Conversation

randmonkey
Copy link
Contributor

@randmonkey randmonkey commented Dec 18, 2023

What this PR does / why we need it:

Add definition of KongVault CRD to define a custom Kong vault.

Which issue this PR fixes:

fixes #5332, and part of #4559.

Special notes for your reviewer:

  • How should we validate backend and prefix in the spec?
    • Currently backend only supports several values (env,aws,azure,gcp,hcv) but possible to add new backends. So we only limit it to be non-empty, and let the webhook to call validation API on Kong gateway side.
    • prefix should be unique, but I did not find an annotation to tell the APIserver that a field is UNIQUE. So we also have to validate it in webhooks.

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 December 18, 2023 05:59
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d6e557a) 69.6% compared to head (a293221) 71.4%.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5354     +/-   ##
=======================================
+ Coverage   69.6%   71.4%   +1.7%     
=======================================
  Files        174     174             
  Lines      21934   21934             
=======================================
+ Hits       15278   15672    +394     
+ Misses      5765    5353    -412     
- Partials     891     909     +18     

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

@randmonkey randmonkey self-assigned this Dec 18, 2023
@randmonkey randmonkey added area/feature New feature or request area/CRD Changes in existing CRDs or introduction of new ones labels Dec 18, 2023
@randmonkey randmonkey force-pushed the feat/define_kongVault_crd branch 2 times, most recently from d42f3f6 to 2d880d3 Compare December 18, 2023 08:14
programmer04
programmer04 previously approved these changes Dec 18, 2023
@randmonkey randmonkey merged commit 2007df3 into main Dec 27, 2023
37 checks passed
@randmonkey randmonkey deleted the feat/define_kongVault_crd branch December 27, 2023 06:12
@@ -129,6 +129,9 @@ Adding a new version? You'll need three changes:
- Added functionality to the `KongUpstreamPolicy` controller to properly set and
enforce `KongUpstreamPolicy` status.
[#5185](https://github.com/Kong/kubernetes-ingress-controller/pull/5185)
- Add CRD `KongVault` to reperesent a custom Kong vault for storing senstive
Copy link
Member

Choose a reason for hiding this comment

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

reperesent -> represent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CRD Changes in existing CRDs or introduction of new ones area/feature New feature or request size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CRD KongVault to manage custom vaults in Kong gateway
5 participants