@@ -16,6 +16,7 @@ import (
16
16
"github.com/solo-io/gloo/projects/gateway2/translator/testutils"
17
17
"github.com/solo-io/gloo/projects/gateway2/wellknown"
18
18
v1 "github.com/solo-io/gloo/projects/gloo/pkg/api/v1"
19
+ "github.com/solo-io/gloo/projects/gloo/pkg/api/v1/options/proxy_protocol"
19
20
corev1 "github.com/solo-io/skv2/pkg/api/core.skv2.solo.io/v1"
20
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
22
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -48,12 +49,17 @@ var _ = Describe("ListenerOptions Plugin", func() {
48
49
},
49
50
}
50
51
51
- outputListener = & v1.Listener {}
52
+ outputListener = & v1.Listener {
53
+ Options : & v1.ListenerOptions {
54
+ ProxyProtocol : & proxy_protocol.ProxyProtocol {},
55
+ },
56
+ }
52
57
53
58
expectedOptions = & v1.ListenerOptions {
54
59
PerConnectionBufferLimitBytes : & wrapperspb.UInt32Value {
55
60
Value : uint32 (419 ),
56
61
},
62
+ ProxyProtocol : & proxy_protocol.ProxyProtocol {},
57
63
}
58
64
})
59
65
JustBeforeEach (func () {
@@ -118,7 +124,6 @@ var _ = Describe("ListenerOptions Plugin", func() {
118
124
})
119
125
})
120
126
})
121
-
122
127
})
123
128
124
129
func attachedListenerOption () * solokubev1.ListenerOption {
@@ -144,6 +149,7 @@ func attachedListenerOption() *solokubev1.ListenerOption {
144
149
},
145
150
}
146
151
}
152
+
147
153
func attachedListenerOptionWithSectionName () * solokubev1.ListenerOption {
148
154
listOpt := attachedListenerOption ()
149
155
listOpt .Spec .TargetRefs [0 ].SectionName = & wrapperspb.StringValue {
0 commit comments