From 07cadd27c7fbec1fd563a6aac887cffe83d177c8 Mon Sep 17 00:00:00 2001 From: Jason Yong Date: Wed, 16 Mar 2022 12:55:02 +0000 Subject: [PATCH] Fix for multiple /'s in application image name Signed-off-by: Jason Yong --- controllers/openlibertyapplication_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/openlibertyapplication_controller.go b/controllers/openlibertyapplication_controller.go index c8fbb525f..b6bf4504b 100644 --- a/controllers/openlibertyapplication_controller.go +++ b/controllers/openlibertyapplication_controller.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" networkingv1 "k8s.io/api/networking/v1" @@ -200,7 +201,7 @@ func (r *ReconcileOpenLiberty) Reconcile(ctx context.Context, request ctrl.Reque if image.DockerImageReference != "" { instance.Status.ImageReference = image.DockerImageReference } - } else if err != nil && !kerrors.IsNotFound(err) && !kerrors.IsForbidden(err) { + } else if err != nil && !kerrors.IsNotFound(err) && !kerrors.IsForbidden(err) && !strings.Contains(isTagName, "/") { return r.ManageError(err, common.StatusConditionTypeReconciled, instance) } }