Skip to content

Commit c7749a6

Browse files
committed
WIP: Change how to build alb spec
1 parent 87dc2c6 commit c7749a6

15 files changed

Lines changed: 1547 additions & 1031 deletions

File tree

cmd/application-load-balancer-controller-manager/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func main() {
114114

115115
if err = (&ingress.IngressClassReconciler{
116116
Client: mgr.GetClient(),
117+
Recorder: mgr.GetEventRecorderFor("ingressclass-controller"),
117118
ALBClient: albClient,
118119
CertificateClient: certificateClient,
119120
Scheme: mgr.GetScheme(),

pkg/alb/ingress/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func ingressEventHandler(c client.Client) handler.EventHandler {
5858
return nil
5959
}
6060

61-
if ingressClass.Spec.Controller != controllerName {
61+
if ingressClass.Spec.Controller == controllerName {
6262
return []ctrl.Request{
6363
{
6464
NamespacedName: client.ObjectKeyFromObject(ingressClass),

0 commit comments

Comments
 (0)