Skip to content

Commit

Permalink
status: Only check for object bucket claim when object storage is man…
Browse files Browse the repository at this point in the history
…aged (PROJQUAY-0000)

- Only check for object bucket claim status when object storage is managed
  • Loading branch information
jonathankingfc committed Aug 25, 2021
1 parent ba686da commit 311688e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/quay/quayregistry_status_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ func (q *QuayRegistryStatusReconciler) deployAvailableCondition(
func (q *QuayRegistryStatusReconciler) faultyObjectBucketClaimConditions(
ctx context.Context, reg qv1.QuayRegistry,
) (map[string][]qv1.Condition, error) {

if !qv1.ComponentIsManaged(reg.Spec.Components, qv1.ComponentObjectStorage) {
return map[string][]qv1.Condition{}, nil
}

var list ocsv1a1.ObjectBucketClaimList
if err := q.Client.List(ctx, &list, client.InNamespace(reg.Namespace)); err != nil {
return nil, err
Expand Down

0 comments on commit 311688e

Please sign in to comment.