@@ -431,7 +431,7 @@ func TestFindProbeForPods(t *testing.T) {
431431
432432func TestGetServicePortForIngressPort (t * testing.T ) {
433433 t .Parallel ()
434- fakeClient := fake .NewSimpleClientset ()
434+ fakeClient := fake .NewClientset ()
435435
436436 cnf := configs .NewConfigurator (configs.ConfiguratorParams {
437437 NginxManager : & nginx.LocalManager {},
@@ -3476,7 +3476,7 @@ func TestNewTelemetryCollector(t *testing.T) {
34763476 {
34773477 testCase : "New Telemetry Collector with default values" ,
34783478 input : NewLoadBalancerControllerInput {
3479- KubeClient : fake .NewSimpleClientset (),
3479+ KubeClient : fake .NewClientset (),
34803480 EnableTelemetryReporting : true ,
34813481 LoggerContext : context .Background (),
34823482 },
@@ -3490,7 +3490,7 @@ func TestNewTelemetryCollector(t *testing.T) {
34903490 {
34913491 testCase : "New Telemetry Collector with Telemetry Reporting set to false" ,
34923492 input : NewLoadBalancerControllerInput {
3493- KubeClient : fake .NewSimpleClientset (),
3493+ KubeClient : fake .NewClientset (),
34943494 EnableTelemetryReporting : false ,
34953495 LoggerContext : context .Background (),
34963496 },
@@ -3548,7 +3548,7 @@ func TestCreateVirtualServerExWithZoneSync(t *testing.T) {
35483548 {
35493549 testCase : "VirtualServerEx without Zone sync" ,
35503550 input : NewLoadBalancerControllerInput {
3551- KubeClient : fake .NewSimpleClientset (),
3551+ KubeClient : fake .NewClientset (),
35523552 EnableTelemetryReporting : false ,
35533553 LoggerContext : context .Background (),
35543554 },
@@ -3564,7 +3564,7 @@ func TestCreateVirtualServerExWithZoneSync(t *testing.T) {
35643564 {
35653565 testCase : "VirtualServerEx with Zone sync" ,
35663566 input : NewLoadBalancerControllerInput {
3567- KubeClient : fake .NewSimpleClientset (),
3567+ KubeClient : fake .NewClientset (),
35683568 EnableTelemetryReporting : false ,
35693569 LoggerContext : context .Background (),
35703570 NginxConfigurator : & configs.Configurator {
@@ -3607,7 +3607,7 @@ func TestCreateIngressExWithZoneSync(t *testing.T) {
36073607 {
36083608 testCase : "IngressEx without Zone sync" ,
36093609 input : NewLoadBalancerControllerInput {
3610- KubeClient : fake .NewSimpleClientset (),
3610+ KubeClient : fake .NewClientset (),
36113611 EnableTelemetryReporting : false ,
36123612 LoggerContext : context .Background (),
36133613 },
@@ -3619,7 +3619,7 @@ func TestCreateIngressExWithZoneSync(t *testing.T) {
36193619 {
36203620 testCase : "IngressEx with Zone sync" ,
36213621 input : NewLoadBalancerControllerInput {
3622- KubeClient : fake .NewSimpleClientset (),
3622+ KubeClient : fake .NewClientset (),
36233623 EnableTelemetryReporting : false ,
36243624 LoggerContext : context .Background (),
36253625 },
@@ -3680,7 +3680,7 @@ func TestIsPodMarkedForDeletion(t *testing.T) {
36803680 for _ , test := range tests {
36813681 test := test
36823682 t .Run (test .name , func (t * testing.T ) {
3683- client := fake .NewSimpleClientset ()
3683+ client := fake .NewClientset ()
36843684 if test .podExists {
36853685 pod := & api_v1.Pod {
36863686 ObjectMeta : meta_v1.ObjectMeta {
0 commit comments