-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Layer 7 load balancing support for Ingress (#22)
* Introduce Addresses API for better handling of endpoint addresses Signed-off-by: Waleed Malik <[email protected]> * Implement route controller Signed-off-by: Waleed Malik <[email protected]> * Move envoy proxy deployment to envoy CP controller Signed-off-by: Waleed Malik <[email protected]> * Update envoy cache based on routes Signed-off-by: Waleed Malik <[email protected]> * Fix issues with load balancing Signed-off-by: Waleed Malik <[email protected]> * Ensure that listeners for routes are unique Signed-off-by: Waleed Malik <[email protected]> * Fixes Signed-off-by: Waleed Malik <[email protected]> * Refactored code Signed-off-by: Waleed Malik <[email protected]> * Fix tests Signed-off-by: Waleed Malik <[email protected]> * Revert local changes Signed-off-by: Waleed Malik <[email protected]> * Fix RBAC Signed-off-by: Waleed Malik <[email protected]> * rebase Signed-off-by: Waleed Malik <[email protected]> * Refactored code Signed-off-by: Waleed Malik <[email protected]> --------- Signed-off-by: Waleed Malik <[email protected]>
- Loading branch information
1 parent
76c1a7c
commit a8fd791
Showing
50 changed files
with
2,980 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
|
||
# Code | ||
/docs | ||
|
||
/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ _build | |
/bin | ||
cover.out | ||
charts/*/Chart.lock | ||
kubelb-*.tgz | ||
kubelb-*.tgz | ||
__debug* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
Copyright 2024 The KubeLB Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// AddressesSpec defines the desired state of Addresses | ||
type AddressesSpec struct { | ||
// Addresses contains a list of addresses. | ||
//+kubebuilder:validation:MinItems:=1 | ||
Addresses []EndpointAddress `json:"addresses,omitempty" protobuf:"bytes,1,rep,name=addresses"` | ||
} | ||
|
||
// AddressesStatus defines the observed state of Addresses | ||
type AddressesStatus struct { | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:subresource:status | ||
|
||
// Addresses is the Schema for the addresses API | ||
type Addresses struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec AddressesSpec `json:"spec,omitempty"` | ||
Status AddressesStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// AddressesList contains a list of Addresses | ||
type AddressesList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []Addresses `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&Addresses{}, &AddressesList{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.