Skip to content

Commit

Permalink
Fix for multiple /'s in application image name (#327)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Yong <[email protected]>
  • Loading branch information
yongja79 authored Mar 16, 2022
1 parent 37f3a47 commit e9bba48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/openlibertyapplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"os"
"strings"

networkingv1 "k8s.io/api/networking/v1"

Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit e9bba48

Please sign in to comment.