@@ -333,7 +333,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
333333 if err != nil {
334334 e := serror .NewGeneric (
335335 fmt .Errorf ("failed to generate transport for '%s': %w" , obj .Spec .URL , err ),
336- sourcev1 .OCIOperationFailedReason ,
336+ sourcev1 .AuthenticationFailedReason ,
337337 )
338338 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
339339 return sreconcile .ResultEmpty , e
@@ -355,7 +355,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
355355
356356 e := serror .NewGeneric (
357357 fmt .Errorf ("failed to determine the artifact tag for '%s': %w" , obj .Spec .URL , err ),
358- sourcev1 .OCIOperationFailedReason )
358+ sourcev1 .ReadOperationFailedReason )
359359 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
360360 return sreconcile .ResultEmpty , e
361361 }
@@ -365,7 +365,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
365365 if err != nil {
366366 e := serror .NewGeneric (
367367 fmt .Errorf ("failed to pull artifact from '%s': %w" , obj .Spec .URL , err ),
368- sourcev1 .OCIOperationFailedReason ,
368+ sourcev1 .OCIPullFailedReason ,
369369 )
370370 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
371371 return sreconcile .ResultEmpty , e
@@ -376,7 +376,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
376376 if err != nil {
377377 e := serror .NewGeneric (
378378 fmt .Errorf ("failed to determine artifact digest: %w" , err ),
379- sourcev1 .OCIOperationFailedReason ,
379+ sourcev1 .OCILayerOperationFailedReason ,
380380 )
381381 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
382382 return sreconcile .ResultEmpty , e
@@ -390,7 +390,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
390390 if err != nil {
391391 e := serror .NewGeneric (
392392 fmt .Errorf ("failed to parse artifact manifest: %w" , err ),
393- sourcev1 .OCIOperationFailedReason ,
393+ sourcev1 .OCILayerOperationFailedReason ,
394394 )
395395 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
396396 return sreconcile .ResultEmpty , e
@@ -417,7 +417,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
417417 if err != nil {
418418 e := serror .NewGeneric (
419419 fmt .Errorf ("failed to parse artifact layers: %w" , err ),
420- sourcev1 .OCIOperationFailedReason ,
420+ sourcev1 .OCILayerOperationFailedReason ,
421421 )
422422 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
423423 return sreconcile .ResultEmpty , e
@@ -426,7 +426,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
426426 if len (layers ) < 1 {
427427 e := serror .NewGeneric (
428428 fmt .Errorf ("no layers found in artifact" ),
429- sourcev1 .OCIOperationFailedReason ,
429+ sourcev1 .OCILayerOperationFailedReason ,
430430 )
431431 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
432432 return sreconcile .ResultEmpty , e
@@ -436,7 +436,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
436436 if err != nil {
437437 e := serror .NewGeneric (
438438 fmt .Errorf ("failed to extract the first layer from artifact: %w" , err ),
439- sourcev1 .OCIOperationFailedReason ,
439+ sourcev1 .OCILayerOperationFailedReason ,
440440 )
441441 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
442442 return sreconcile .ResultEmpty , e
@@ -445,7 +445,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, obj *sour
445445 if _ , err = untar .Untar (blob , dir ); err != nil {
446446 e := serror .NewGeneric (
447447 fmt .Errorf ("failed to untar the first layer from artifact: %w" , err ),
448- sourcev1 .OCIOperationFailedReason ,
448+ sourcev1 .OCILayerOperationFailedReason ,
449449 )
450450 conditions .MarkTrue (obj , sourcev1 .FetchFailedCondition , e .Reason , e .Err .Error ())
451451 return sreconcile .ResultEmpty , e
0 commit comments