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: managed gateways config pushed when accepted #5662

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

mlavacca
Copy link
Member

What this PR does / why we need it:

All the gateways (managed and unmanaged) are pushed to the dataplane. The condition for it is to have them accepted.

Which issue this PR fixes:

Fixes: #5600

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

@mlavacca mlavacca requested a review from a team as a code owner February 27, 2024 15:40
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 71.6%. Comparing base (4f8b13d) to head (cc50b1a).

Files Patch % Lines
internal/controllers/gateway/gateway_controller.go 75.0% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5662     +/-   ##
=======================================
- Coverage   71.7%   71.6%   -0.1%     
=======================================
  Files        176     176             
  Lines      18164   18163      -1     
=======================================
- Hits       13038   13022     -16     
- Misses      4177    4183      +6     
- Partials     949     958      +9     

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

Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>
@rainest rainest merged commit 0d757a0 into main Feb 27, 2024
58 of 60 checks passed
@rainest rainest deleted the mlavacca/managed-gateways branch February 27, 2024 18:01
@team-k8s-bot
Copy link
Collaborator

The backport to release/3.1.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release/3.1.x release/3.1.x
# Navigate to the new working tree
cd .worktrees/backport-release/3.1.x
# Create a new branch
git switch --create backport-5662-to-release/3.1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0d757a0f2895665655c034a80c7d9e16c2b8855c
# Push it to GitHub
git push --set-upstream origin backport-5662-to-release/3.1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release/3.1.x

Then, create a pull request where the base branch is release/3.1.x and the compare/head branch is backport-5662-to-release/3.1.x.

@pmalek pmalek mentioned this pull request Feb 28, 2024
29 tasks
mlavacca added a commit that referenced this pull request Feb 28, 2024
Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>
mlavacca added a commit that referenced this pull request Feb 28, 2024
* feat: managed gateways config pushed when accepted (#5662)

Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>

* fix(controllers) skip routes bound to excluded GWs (#5642)

In single-Gateway mode, properly skip route parent references for other
Gateways when determining whether to include a route.

* chore: generate validating webhook config using controller-gen (#5659)

* tests: port KongVault validation webhook tests to envtests (#5605)

Co-authored-by: Patryk Małek <patryk.malek@konghq.com>

---------

Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>
Co-authored-by: Travis Raines <571832+rainest@users.noreply.github.com>
Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
Co-authored-by: Patryk Małek <patryk.malek@konghq.com>
mlavacca added a commit that referenced this pull request Feb 29, 2024
* feat: managed gateways config pushed when accepted (#5662)

Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>

* fix(controllers) skip routes bound to excluded GWs (#5642)

In single-Gateway mode, properly skip route parent references for other
Gateways when determining whether to include a route.

* chore: generate validating webhook config using controller-gen (#5659)

* tests: port KongVault validation webhook tests to envtests (#5605)

Co-authored-by: Patryk Małek <patryk.malek@konghq.com>

---------

Signed-off-by: Mattia Lavacca <lavacca.mattia@gmail.com>
Co-authored-by: Travis Raines <571832+rainest@users.noreply.github.com>
Co-authored-by: Grzegorz Burzyński <czeslavo@gmail.com>
Co-authored-by: Patryk Małek <patryk.malek@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Listener certificates are not used when coming from managed gateways
3 participants