From c9b4e2d60bdfdd3630a0d42729e702b2a192585b Mon Sep 17 00:00:00 2001 From: Santosh Date: Mon, 9 Feb 2026 20:37:50 +0530 Subject: [PATCH] rgw: fix status info when http is disabled When http is disabled, the spec.status.info.insecure will keep on showing the insecure endpoint. This PR makes sure that the spec.status.info.insecure is empty when http is disabled Signed-off-by: Santosh (cherry picked from commit 6b9b0231b70156b1aaae37fa74efcbc827691baa) --- pkg/operator/ceph/object/status.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/operator/ceph/object/status.go b/pkg/operator/ceph/object/status.go index 5736190f2..90a908bc4 100644 --- a/pkg/operator/ceph/object/status.go +++ b/pkg/operator/ceph/object/status.go @@ -86,10 +86,15 @@ func updateStatus(ctx context.Context, observedGeneration int64, replicaCount in insecurePort := objectStore.Spec.Gateway.Port if insecurePort > 0 { objectStore.Status.Endpoints.Insecure = getAllDNSEndpoints(objectStore, insecurePort, false) + } else if insecurePort == 0 { + objectStore.Status.Endpoints.Insecure = []string{} } + securePort := objectStore.Spec.Gateway.SecurePort if securePort > 0 { objectStore.Status.Endpoints.Secure = getAllDNSEndpoints(objectStore, securePort, true) + } else if securePort == 0 { + objectStore.Status.Endpoints.Secure = []string{} } if cephx != nil {