Skip to content

Commit

Permalink
Revert "Bug 2273553: initalise objectstore.spec.hosting for virtualHo…
Browse files Browse the repository at this point in the history
…stnames"

This reverts commit f9d3ce8.

Signed-off-by: Blaine Gardner <[email protected]>
  • Loading branch information
BlaineEXE committed Jun 14, 2024
1 parent 3886d23 commit ec6515e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/storagecluster/cephobjectstores.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ func (r *StorageClusterReconciler) newCephObjectStoreInstances(initData *ocsv1.S
}

if len(initData.Spec.ManagedResources.CephObjectStores.VirtualHostnames) > 0 {
obj.Spec.Hosting = &cephv1.ObjectStoreHostingSpec{
DNSNames: initData.Spec.ManagedResources.CephObjectStores.VirtualHostnames,
}
obj.Spec.Hosting.DNSNames = initData.Spec.ManagedResources.CephObjectStores.VirtualHostnames
route := &routev1.Route{}
err := r.Client.Get(context.TODO(), types.NamespacedName{Name: obj.Name, Namespace: obj.Namespace}, route)
if err != nil {
Expand Down

0 comments on commit ec6515e

Please sign in to comment.