@@ -7,12 +7,11 @@ import (
77 "time"
88
99 helmv2 "github.com/fluxcd/helm-controller/api/v2"
10- imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1beta2 "
11- reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1beta2 "
10+ imgautomationv1 "github.com/fluxcd/image-automation-controller/api/v1 "
11+ reflectorv1 "github.com/fluxcd/image-reflector-controller/api/v1 "
1212 kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
1313 "github.com/fluxcd/pkg/apis/meta"
1414 sourcev1 "github.com/fluxcd/source-controller/api/v1"
15- sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2"
1615 . "github.com/onsi/gomega"
1716 "google.golang.org/grpc/metadata"
1817 corev1 "k8s.io/api/core/v1"
@@ -159,7 +158,7 @@ func TestSync(t *testing.T) {
159158 msg : & pb.SyncFluxObjectRequest {
160159 Objects : []* pb.ObjectRef {{
161160 ClusterName : "Default" ,
162- Kind : sourcev1b2 .OCIRepositoryKind ,
161+ Kind : sourcev1 .OCIRepositoryKind ,
163162 }},
164163 WithSource : false ,
165164 },
@@ -309,7 +308,7 @@ func simulateReconcile(ctx context.Context, k client.Client, name types.Namespac
309308
310309 return k .Status ().Update (ctx , obj )
311310
312- case * sourcev1b2 .OCIRepository :
311+ case * sourcev1 .OCIRepository :
313312 if err := k .Get (ctx , name , obj ); err != nil {
314313 return err
315314 }
@@ -463,16 +462,16 @@ func makeHelmRelease(name string, ns corev1.Namespace, repo *sourcev1.HelmReposi
463462 }
464463}
465464
466- func makeOCIRepo (name string , ns corev1.Namespace ) * sourcev1b2 .OCIRepository {
467- return & sourcev1b2 .OCIRepository {
465+ func makeOCIRepo (name string , ns corev1.Namespace ) * sourcev1 .OCIRepository {
466+ return & sourcev1 .OCIRepository {
468467 ObjectMeta : metav1.ObjectMeta {
469468 Name : name ,
470469 Namespace : ns .Name ,
471470 },
472- Spec : sourcev1b2 .OCIRepositorySpec {
471+ Spec : sourcev1 .OCIRepositorySpec {
473472 URL : "oci://ghcr.io/some/chart" ,
474473 },
475- Status : sourcev1b2 .OCIRepositoryStatus {
474+ Status : sourcev1 .OCIRepositoryStatus {
476475 ReconcileRequestStatus : meta.ReconcileRequestStatus {
477476 LastHandledReconcileAt : time .Now ().Format (time .RFC3339Nano ),
478477 },
0 commit comments