@@ -28,11 +28,6 @@ import (
2828 "testing"
2929 "time"
3030
31- "github.com/darkowlzz/controller-check/status"
32- "github.com/fluxcd/pkg/apis/meta"
33- "github.com/fluxcd/pkg/helmtestserver"
34- "github.com/fluxcd/pkg/runtime/conditions"
35- "github.com/fluxcd/pkg/runtime/patch"
3631 . "github.com/onsi/gomega"
3732 helmgetter "helm.sh/helm/v3/pkg/getter"
3833 corev1 "k8s.io/api/core/v1"
@@ -44,6 +39,12 @@ import (
4439 "sigs.k8s.io/controller-runtime/pkg/client/fake"
4540 fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
4641
42+ "github.com/fluxcd/pkg/apis/meta"
43+ "github.com/fluxcd/pkg/helmtestserver"
44+ "github.com/fluxcd/pkg/runtime/conditions"
45+ conditionscheck "github.com/fluxcd/pkg/runtime/conditions/check"
46+ "github.com/fluxcd/pkg/runtime/patch"
47+
4748 sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
4849 "github.com/fluxcd/source-controller/internal/helm/getter"
4950 "github.com/fluxcd/source-controller/internal/helm/repository"
@@ -101,8 +102,8 @@ func TestHelmRepositoryReconciler_Reconcile(t *testing.T) {
101102 }, timeout ).Should (BeTrue ())
102103
103104 // Check if the object status is valid.
104- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
105- checker := status .NewChecker (testEnv .Client , condns )
105+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
106+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
106107 checker .CheckErr (ctx , obj )
107108
108109 // kstatus client conformance check.
@@ -1165,8 +1166,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
11651166 }, timeout ).Should (BeTrue ())
11661167
11671168 // Check if the object status is valid.
1168- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1169- checker := status .NewChecker (testEnv .Client , condns )
1169+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1170+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
11701171 checker .CheckErr (ctx , obj )
11711172
11721173 // kstatus client conformance check.
@@ -1217,8 +1218,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
12171218 }, timeout ).Should (BeTrue ())
12181219
12191220 // Check if the object status is valid.
1220- condns = & status .Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
1221- checker = status .NewChecker (testEnv .Client , condns )
1221+ condns = & conditionscheck .Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
1222+ checker = conditionscheck .NewChecker (testEnv .Client , condns )
12221223 checker .CheckErr (ctx , obj )
12231224
12241225 g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
@@ -1282,8 +1283,8 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
12821283 }, timeout ).Should (BeTrue ())
12831284
12841285 // Check if the object status is valid.
1285- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1286- checker := status .NewChecker (testEnv .Client , condns )
1286+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1287+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
12871288 checker .CheckErr (ctx , obj )
12881289
12891290 // kstatus client conformance check.
@@ -1314,8 +1315,8 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
13141315 }, timeout ).Should (BeTrue ())
13151316
13161317 // Check if the object status is valid.
1317- condns = & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1318- checker = status .NewChecker (testEnv .Client , condns )
1318+ condns = & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1319+ checker = conditionscheck .NewChecker (testEnv .Client , condns )
13191320 checker .CheckErr (ctx , obj )
13201321
13211322 g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
0 commit comments