@@ -333,7 +333,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
333
333
if err != nil {
334
334
e := serror .NewGeneric (
335
335
fmt .Errorf ("failed to generate transport for '%s': %w" , obj .Spec .URL , err ),
336
- sourcev1 .OCIOperationFailedReason ,
336
+ sourcev1 .AuthenticationFailedReason ,
337
337
)
338
338
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
339
339
return sreconcile .ResultEmpty , e
@@ -365,7 +365,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
365
365
if err != nil {
366
366
e := serror .NewGeneric (
367
367
fmt .Errorf ("failed to pull artifact from '%s': %w" , obj .Spec .URL , err ),
368
- sourcev1 .OCIOperationFailedReason ,
368
+ sourcev1 .OCIPullFailedReason ,
369
369
)
370
370
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
371
371
return sreconcile .ResultEmpty , e
@@ -376,7 +376,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
376
376
if err != nil {
377
377
e := serror .NewGeneric (
378
378
fmt .Errorf ("failed to determine artifact digest: %w" , err ),
379
- sourcev1 .OCIOperationFailedReason ,
379
+ sourcev1 .OCILayerOperationFailedReason ,
380
380
)
381
381
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
382
382
return sreconcile .ResultEmpty , e
@@ -390,7 +390,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
390
390
if err != nil {
391
391
e := serror .NewGeneric (
392
392
fmt .Errorf ("failed to parse artifact manifest: %w" , err ),
393
- sourcev1 .OCIOperationFailedReason ,
393
+ sourcev1 .OCILayerOperationFailedReason ,
394
394
)
395
395
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
396
396
return sreconcile .ResultEmpty , e
@@ -417,7 +417,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
417
417
if err != nil {
418
418
e := serror .NewGeneric (
419
419
fmt .Errorf ("failed to parse artifact layers: %w" , err ),
420
- sourcev1 .OCIOperationFailedReason ,
420
+ sourcev1 .OCILayerOperationFailedReason ,
421
421
)
422
422
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
423
423
return sreconcile .ResultEmpty , e
@@ -426,7 +426,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
426
426
if len (layers ) < 1 {
427
427
e := serror .NewGeneric (
428
428
fmt .Errorf ("no layers found in artifact" ),
429
- sourcev1 .OCIOperationFailedReason ,
429
+ sourcev1 .OCILayerOperationFailedReason ,
430
430
)
431
431
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
432
432
return sreconcile .ResultEmpty , e
@@ -436,7 +436,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
436
436
if err != nil {
437
437
e := serror .NewGeneric (
438
438
fmt .Errorf ("failed to extract the first layer from artifact: %w" , err ),
439
- sourcev1 .OCIOperationFailedReason ,
439
+ sourcev1 .OCILayerOperationFailedReason ,
440
440
)
441
441
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
442
442
return sreconcile .ResultEmpty , e
@@ -445,7 +445,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
445
445
if _ , err = untar .Untar (blob , dir ); err != nil {
446
446
e := serror .NewGeneric (
447
447
fmt .Errorf ("failed to untar the first layer from artifact: %w" , err ),
448
- sourcev1 .OCIOperationFailedReason ,
448
+ sourcev1 .OCILayerOperationFailedReason ,
449
449
)
450
450
conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
451
451
return sreconcile .ResultEmpty , e
0 commit comments