Skip to content

Commit 8c26ed6

Browse files
authored
Add 3 or more '/' fix (#344)
1 parent c86b2bc commit 8c26ed6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/runtimecomponent_controller.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"fmt"
2222
"os"
23+
"strings"
2324

2425
"github.com/application-stacks/runtime-component-operator/common"
2526
"github.com/pkg/errors"
@@ -183,7 +184,7 @@ func (r *RuntimeComponentReconciler) Reconcile(ctx context.Context, req ctrl.Req
183184
if image.DockerImageReference != "" {
184185
instance.Status.ImageReference = image.DockerImageReference
185186
}
186-
} else if err != nil && !kerrors.IsNotFound(err) && !kerrors.IsForbidden(err) {
187+
} else if err != nil && !kerrors.IsNotFound(err) && !kerrors.IsForbidden(err) && !strings.Contains(isTagName, "/") {
187188
return r.ManageError(err, common.StatusConditionTypeReconciled, instance)
188189
}
189190
}

0 commit comments

Comments
 (0)