diff --git a/controllers/swiftproxy_controller.go b/controllers/swiftproxy_controller.go index 4b29a78..0cfe694 100644 --- a/controllers/swiftproxy_controller.go +++ b/controllers/swiftproxy_controller.go @@ -660,7 +660,7 @@ func (r *SwiftProxyReconciler) Reconcile(ctx context.Context, req ctrl.Request) } instance.Status.NetworkAttachments = networkAttachmentStatus - if networkReady { + if networkReady || *instance.Spec.Replicas == 0 { instance.Status.Conditions.MarkTrue(condition.NetworkAttachmentsReadyCondition, condition.NetworkAttachmentsReadyMessage) } else { err := fmt.Errorf("not all pods have interfaces with ips as configured in NetworkAttachments: %s", instance.Spec.NetworkAttachments) diff --git a/controllers/swiftstorage_controller.go b/controllers/swiftstorage_controller.go index 199be00..e88b587 100644 --- a/controllers/swiftstorage_controller.go +++ b/controllers/swiftstorage_controller.go @@ -319,7 +319,7 @@ func (r *SwiftStorageReconciler) Reconcile(ctx context.Context, req ctrl.Request } instance.Status.NetworkAttachments = networkAttachmentStatus - if networkReady { + if networkReady || *instance.Spec.Replicas == 0 { instance.Status.Conditions.MarkTrue(condition.NetworkAttachmentsReadyCondition, condition.NetworkAttachmentsReadyMessage) } else { err := fmt.Errorf("not all pods have interfaces with ips as configured in NetworkAttachments: %s", instance.Spec.NetworkAttachments)