@@ -23,6 +23,7 @@ import (
2323
2424 "github.com/google/go-cmp/cmp"
2525 "github.com/istio-ecosystem/sail-operator/api/v1alpha1"
26+ "github.com/istio-ecosystem/sail-operator/pkg/config"
2627 "github.com/istio-ecosystem/sail-operator/pkg/scheme"
2728 "github.com/istio-ecosystem/sail-operator/pkg/test/testtime"
2829 "github.com/istio-ecosystem/sail-operator/pkg/test/util/supportedversion"
@@ -60,7 +61,7 @@ func TestReconcile(t *testing.T) {
6061 cl := newFakeClientBuilder ().
6162 WithObjects (istio ).
6263 Build ()
63- reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , "" )
64+ reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , config . PlatformKubernetes , "" )
6465
6566 _ , err := reconciler .Reconcile (ctx , istio )
6667 if err == nil {
@@ -96,7 +97,7 @@ func TestReconcile(t *testing.T) {
9697 WithStatusSubresource (& v1alpha1.RemoteIstio {}).
9798 WithObjects (istio ).
9899 Build ()
99- reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , "invalid-profile" )
100+ reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , config . PlatformKubernetes , "invalid-profile" )
100101
101102 _ , err := reconciler .Reconcile (ctx , istio )
102103 if err == nil {
@@ -136,7 +137,7 @@ func TestReconcile(t *testing.T) {
136137 },
137138 }).
138139 Build ()
139- reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , "" )
140+ reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , config . PlatformKubernetes , "" )
140141
141142 _ , err := reconciler .Reconcile (ctx , istio )
142143 if err == nil {
@@ -532,7 +533,7 @@ func TestDetermineStatus(t *testing.T) {
532533 WithObjects (initObjs ... ).
533534 WithInterceptorFuncs (interceptorFuncs ).
534535 Build ()
535- reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , "" )
536+ reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , config . PlatformKubernetes , "" )
536537
537538 status , err := reconciler .determineStatus (ctx , istio , tc .reconciliationErr )
538539 if (err != nil ) != tc .wantErr {
@@ -733,7 +734,7 @@ func TestUpdateStatus(t *testing.T) {
733734 WithObjects (initObjs ... ).
734735 WithInterceptorFuncs (interceptorFuncs ).
735736 Build ()
736- reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , "" )
737+ reconciler := NewReconciler (cl , scheme .Scheme , resourceDir , config . PlatformKubernetes , "" )
737738
738739 err := reconciler .updateStatus (ctx , istio , tc .reconciliationErr )
739740 if (err != nil ) != tc .wantErr {
0 commit comments