Skip to content

Commit

Permalink
ceph: update endpoint with IP for external RGW server
Browse files Browse the repository at this point in the history
For external RGW server use the IP mentioned in Gateway for admin Ops
operattions.

Fixes: #8916
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
  • Loading branch information
thotz committed Oct 21, 2021
1 parent d7213c0 commit d4562f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/ceph/object/controller.go
Expand Up @@ -391,6 +391,10 @@ func (r *ReconcileCephObjectStore) reconcileCreateObjectStore(cephObjectStore *c
if err != nil {
return r.setFailedStatus(namespacedName, "failed to reconcile external endpoint", err)
}

if err := UpdateEndpoint(objContext, &cephObjectStore.Spec); err != nil {
return r.setFailedStatus(namespacedName, "failed to set endpoint", err)
}
} else {
logger.Info("reconciling object store deployments")

Expand Down

0 comments on commit d4562f6

Please sign in to comment.