From 742b91ae94f380db1ba806fc2c0fe38ff304d648 Mon Sep 17 00:00:00 2001 From: Jason Yong Date: Mon, 7 Mar 2022 23:34:20 +0000 Subject: [PATCH] Fix to allow multiple /'s in application image (#333) 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) } }