From 42a5cece57e764c98f2dbd2f8dc701c976b2463f Mon Sep 17 00:00:00 2001 From: Jason Yong Date: Wed, 2 Feb 2022 14:23:09 +0000 Subject: [PATCH] Fix to allow multiple /'s in application image Signed-off-by: Jason Yong --- controllers/runtimecomponent_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/runtimecomponent_controller.go b/controllers/runtimecomponent_controller.go index 427522dff..21867a27a 100644 --- a/controllers/runtimecomponent_controller.go +++ b/controllers/runtimecomponent_controller.go @@ -20,6 +20,7 @@ import ( "context" "fmt" "os" + "strings" "github.com/application-stacks/runtime-component-operator/common" "github.com/pkg/errors" @@ -183,7 +184,7 @@ func (r *RuntimeComponentReconciler) Reconcile(ctx context.Context, req ctrl.Req 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) } }