@@ -966,7 +966,7 @@ func TestFirewallNeedsUpdate(t *testing.T) {
966966 ports []v1.ServicePort
967967 ipnet utilnet.IPNetSet
968968 fwIPProtocol string
969- getHook func (context.Context , * meta.Key , * cloud.MockFirewalls ) (bool , * compute.Firewall , error )
969+ getHook func (context.Context , * meta.Key , * cloud.MockFirewalls , ... cloud. Option ) (bool , * compute.Firewall , error )
970970 sourceRange string
971971 exists bool
972972 needsUpdate bool
@@ -1074,7 +1074,7 @@ func TestFirewallNeedsUpdate(t *testing.T) {
10741074 ports : svc .Spec .Ports ,
10751075 ipnet : ipnet ,
10761076 fwIPProtocol : "tcp" ,
1077- getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls ) (bool , * compute.Firewall , error ) {
1077+ getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls , options ... cloud. Option ) (bool , * compute.Firewall , error ) {
10781078 obj , ok := m .Objects [* key ]
10791079 if ! ok {
10801080 return false , nil , nil
@@ -1098,7 +1098,7 @@ func TestFirewallNeedsUpdate(t *testing.T) {
10981098 ports : svc .Spec .Ports ,
10991099 ipnet : ipnet ,
11001100 fwIPProtocol : "tcp" ,
1101- getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls ) (bool , * compute.Firewall , error ) {
1101+ getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls , options ... cloud. Option ) (bool , * compute.Firewall , error ) {
11021102 obj , ok := m .Objects [* key ]
11031103 if ! ok {
11041104 return false , nil , nil
@@ -1122,7 +1122,7 @@ func TestFirewallNeedsUpdate(t *testing.T) {
11221122 ports : svc .Spec .Ports ,
11231123 ipnet : ipnet ,
11241124 fwIPProtocol : "tcp" ,
1125- getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls ) (bool , * compute.Firewall , error ) {
1125+ getHook : func (ctx context.Context , key * meta.Key , m * cloud.MockFirewalls , options ... cloud. Option ) (bool , * compute.Firewall , error ) {
11261126 obj , ok := m .Objects [* key ]
11271127 if ! ok {
11281128 return false , nil , nil
@@ -1496,7 +1496,7 @@ func TestExternalLoadBalancerEnsureHttpHealthCheck(t *testing.T) {
14961496 gce , err := fakeGCECloud (DefaultTestClusterValues ())
14971497 require .NoError (t , err )
14981498 c := gce .c .(* cloud.MockGCE )
1499- c .MockHttpHealthChecks .UpdateHook = func (ctx context.Context , key * meta.Key , obj * compute.HttpHealthCheck , m * cloud.MockHttpHealthChecks ) error {
1499+ c .MockHttpHealthChecks .UpdateHook = func (ctx context.Context , key * meta.Key , obj * compute.HttpHealthCheck , m * cloud.MockHttpHealthChecks , options ... cloud. Option ) error {
15001500 m .Objects [* key ] = & cloud.MockHttpHealthChecksObj {Obj : obj }
15011501 return nil
15021502 }
0 commit comments