From 2fc5811b275d911a21922579721c10117c2bc626 Mon Sep 17 00:00:00 2001 From: Kim Tsao <84398375+kim-tsao@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:04:09 -0500 Subject: [PATCH] replica fix for SEB (#430) Signed-off-by: Kim Tsao --- controllers/applicationsnapshotenvironmentbinding_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/applicationsnapshotenvironmentbinding_controller.go b/controllers/applicationsnapshotenvironmentbinding_controller.go index 9015c6f7a..542b239ab 100644 --- a/controllers/applicationsnapshotenvironmentbinding_controller.go +++ b/controllers/applicationsnapshotenvironmentbinding_controller.go @@ -357,6 +357,8 @@ func (r *SnapshotEnvironmentBindingReconciler) Reconcile(ctx context.Context, re if component.Configuration.Replicas != nil { genOptions.Replicas = *component.Configuration.Replicas + } else { + genOptions.Replicas = 1 //default is 1 } if !reflect.DeepEqual(kubernetesResources, devfileParser.KubernetesResources{}) {