@@ -113,7 +113,7 @@ func TestResolveBackupClass(t *testing.T) {
113113 applicationRef corev1.TypedLocalObjectReference
114114 backupClassName string
115115 wantErr bool
116- expectedStrategyRef * corev1. TypedLocalObjectReference
116+ expectedStrategyRef * backupsv1alpha1. TypedClusterObjectReference
117117 expectedParams map [string ]string
118118 }{
119119 {
@@ -125,7 +125,7 @@ func TestResolveBackupClass(t *testing.T) {
125125 Spec : backupsv1alpha1.BackupClassSpec {
126126 Strategies : []backupsv1alpha1.BackupClassStrategy {
127127 {
128- StrategyRef : corev1. TypedLocalObjectReference {
128+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
129129 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
130130 Kind : "Velero" ,
131131 Name : "velero-strategy-vm" ,
@@ -138,7 +138,7 @@ func TestResolveBackupClass(t *testing.T) {
138138 },
139139 },
140140 {
141- StrategyRef : corev1. TypedLocalObjectReference {
141+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
142142 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
143143 Kind : "Velero" ,
144144 Name : "velero-strategy-mysql" ,
@@ -159,7 +159,7 @@ func TestResolveBackupClass(t *testing.T) {
159159 },
160160 backupClassName : "velero" ,
161161 wantErr : false ,
162- expectedStrategyRef : & corev1. TypedLocalObjectReference {
162+ expectedStrategyRef : & backupsv1alpha1. TypedClusterObjectReference {
163163 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
164164 Kind : "Velero" ,
165165 Name : "velero-strategy-vm" ,
@@ -177,7 +177,7 @@ func TestResolveBackupClass(t *testing.T) {
177177 Spec : backupsv1alpha1.BackupClassSpec {
178178 Strategies : []backupsv1alpha1.BackupClassStrategy {
179179 {
180- StrategyRef : corev1. TypedLocalObjectReference {
180+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
181181 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
182182 Kind : "Velero" ,
183183 Name : "velero-strategy-mysql" ,
@@ -200,7 +200,7 @@ func TestResolveBackupClass(t *testing.T) {
200200 },
201201 backupClassName : "velero" ,
202202 wantErr : false ,
203- expectedStrategyRef : & corev1. TypedLocalObjectReference {
203+ expectedStrategyRef : & backupsv1alpha1. TypedClusterObjectReference {
204204 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
205205 Kind : "Velero" ,
206206 Name : "velero-strategy-mysql" ,
@@ -218,7 +218,7 @@ func TestResolveBackupClass(t *testing.T) {
218218 Spec : backupsv1alpha1.BackupClassSpec {
219219 Strategies : []backupsv1alpha1.BackupClassStrategy {
220220 {
221- StrategyRef : corev1. TypedLocalObjectReference {
221+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
222222 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
223223 Kind : "Velero" ,
224224 Name : "velero-strategy-vm" ,
@@ -240,7 +240,7 @@ func TestResolveBackupClass(t *testing.T) {
240240 },
241241 backupClassName : "velero" ,
242242 wantErr : false ,
243- expectedStrategyRef : & corev1. TypedLocalObjectReference {
243+ expectedStrategyRef : & backupsv1alpha1. TypedClusterObjectReference {
244244 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
245245 Kind : "Velero" ,
246246 Name : "velero-strategy-vm" ,
@@ -275,7 +275,7 @@ func TestResolveBackupClass(t *testing.T) {
275275 Spec : backupsv1alpha1.BackupClassSpec {
276276 Strategies : []backupsv1alpha1.BackupClassStrategy {
277277 {
278- StrategyRef : corev1. TypedLocalObjectReference {
278+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
279279 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
280280 Kind : "Velero" ,
281281 Name : "velero-strategy-vm" ,
@@ -303,7 +303,7 @@ func TestResolveBackupClass(t *testing.T) {
303303 Spec : backupsv1alpha1.BackupClassSpec {
304304 Strategies : []backupsv1alpha1.BackupClassStrategy {
305305 {
306- StrategyRef : corev1. TypedLocalObjectReference {
306+ StrategyRef : backupsv1alpha1. TypedClusterObjectReference {
307307 APIGroup : stringPtr ("strategy.backups.cozystack.io" ),
308308 Kind : "Velero" ,
309309 Name : "velero-strategy-vm" ,
0 commit comments