Skip to content

Commit

Permalink
object: set default zone/zonegroup/realm values for external rgw
Browse files Browse the repository at this point in the history
currently if multisite is not configured Rook sets values for
zone/zonegroup/realm as object store name which is only valid for
internal ceph object store. This may not exists for rgw running in
external cluster.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
  • Loading branch information
thotz committed Feb 16, 2022
1 parent 1d5b435 commit 1009345
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/operator/ceph/object/objectstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ func getMultisiteForObjectStore(clusterdContext *clusterd.Context, spec *cephv1.
return realm.Name, zonegroup.Name, zone.Name, nil
}

// TODO: check or fix https://github.com/rook/rook/issues/9750
if spec.IsExternal() {
return "", "default", "default", nil
}

return name, name, name, nil
}

Expand Down

0 comments on commit 1009345

Please sign in to comment.