Skip to content

Commit d1753ea

Browse files
Merge pull request #394 from fmount/no_replicas
Do not report network related errors if replicas=0
2 parents 83e325c + 56ff50a commit d1753ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/glanceapi_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ func (r *GlanceAPIReconciler) reconcileNormal(ctx context.Context, instance *gla
600600
}
601601

602602
instance.Status.NetworkAttachments = networkAttachmentStatus
603-
if networkReady {
603+
if networkReady || *instance.Spec.Replicas == 0 {
604604
instance.Status.Conditions.MarkTrue(condition.NetworkAttachmentsReadyCondition, condition.NetworkAttachmentsReadyMessage)
605605
} else {
606606
err := fmt.Errorf("not all pods have interfaces with ips as configured in NetworkAttachments: %s", instance.Spec.NetworkAttachments)

0 commit comments

Comments
 (0)