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

Handle multiple fleets #157

Merged
merged 6 commits into from
Dec 28, 2021
Merged

Conversation

Tarick
Copy link
Contributor

@Tarick Tarick commented Dec 24, 2021

This PR...

Changes

Adds the ability to handle deployments to the multiple Envoy fleets using an optional field "fleet" in the API and StaticRoute specs with name and namespace of the deployed EnvoyFleet using mutating webhooks.
If the field is missing, cluster detection will set it to the deployed fleet. If there are multiple fleets in the cluster or no fleets at all, mutating webhooks will fail with the message to the user to set the fleet.
In order for the webhooks to query K8s they were reworked to include client.Client from the kubebuilder supplied configuration to controller-runtime lower level handler (will help with #95 as well).
The Helm chart and the documentation will be updated in #144.

Fixes

Fixes #149

Also introduced fixes to the vhosts configuration after the last refactoring.

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@Tarick Tarick merged commit 5e1adb5 into main Dec 28, 2021
@Tarick Tarick deleted the tyatsurak/enhancement/149-multiple-fleets branch December 28, 2021 11:32
Tarick added a commit that referenced this pull request Jan 5, 2022
* Adds the ability to handle deployments to the multiple Envoy fleets using an optional field "fleet" in the API and StaticRoute specs with name and namespace of the deployed EnvoyFleet using mutating webhooks.
* In order for the webhooks to query K8s they were reworked to include client.Client from the kubebuilder supplied configuration to controller-runtime lower level handler.
* Fixed latest refactoring vhost/domain handling.
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.

EnvoyFleet: support for multiple fleets
2 participants